]> git.karo-electronics.de Git - karo-tx-linux.git/commit
firewire: ohci: handle receive packets with a data length of zero
authorJay Fenlason <fenlason@redhat.com>
Fri, 11 Dec 2009 19:23:58 +0000 (14:23 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 21:43:12 +0000 (13:43 -0800)
commited033bf1ff69361887b6a79cdf6131ed0931fbbc
treea847f01490dc06697081ab9d3613b93c03902de9
parent9b6950a5e8986e97dd195070443f866035dfc5ef
firewire: ohci: handle receive packets with a data length of zero

commit 8c0c0cc2d9f4c523fde04bdfe41e4380dec8ee54 upstream.

Queueing to receive an ISO packet with a payload length of zero
silently does nothing in dualbuffer mode, and crashes the kernel in
packet-per-buffer mode.  Return an error in dualbuffer mode, because
the DMA controller won't let us do what we want, and work correctly in
packet-per-buffer mode.

Signed-off-by: Jay Fenlason <fenlason@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firewire/ohci.c