]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 11 Dec 2009 20:43:45 +0000 (21:43 +0100)
commit8c0c0cc2d9f4c523fde04bdfe41e4380dec8ee54
treeeeb3a432eab9e357b332366fe7719fa932e29b88
parentaf0940dac37545b1e7900b19c464fb6367d3f82f
firewire: ohci: handle receive packets with a data length of zero

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>
Cc: stable@kernel.org
drivers/firewire/ohci.c