]> git.kernelconcepts.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:30:43 +0000 (13:30 -0800)
commite6ebd01ffd7b79678dfdda1d3b5653e8aea3eb41
tree46135b074f89367ecb948519b11b44e5a30edbbc
parent7a3390e41955ec09330821ba7b5231fc5b333453
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/fw-ohci.c