aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorStephan Gatzka <stephan.gatzka@gmail.com>2012-11-28 20:04:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-17 08:43:53 -0800
commitf8ef1b36636fadc891a039baef46414e635a2a72 (patch)
tree013b4a602c20e173b14fc037b1cdacaa8f64698a /drivers/scsi
parent46bea30a01949caf8143be4a88038cbe1003b10e (diff)
downloadkernel_samsung_smdk4412-f8ef1b36636fadc891a039baef46414e635a2a72.tar.gz
kernel_samsung_smdk4412-f8ef1b36636fadc891a039baef46414e635a2a72.tar.bz2
kernel_samsung_smdk4412-f8ef1b36636fadc891a039baef46414e635a2a72.zip
firewire: net: Fix handling of fragmented multicast/broadcast packets.
commit 9d2373420900a39f5212a3b289331aa3535b1000 upstream. This patch fixes both the transmit and receive portion of sending fragmented mutlicast and broadcast packets. The transmit section was broken because the offset for INTFRAG and LASTFRAG packets were just miscalculated by IEEE1394_GASP_HDR_SIZE (which was reserved with skb_push() in fwnet_send_packet). The receive section was broken because in fwnet_incoming_packet is a call to fwnet_peer_find_by_node_id(). Called with generation == -1 it will not find a peer and the partial datagrams are associated to a peer. [Stefan R: The fix to use context->card->generation is not perfect. It relies on the IR tasklet which processes packets from the prior bus generation to run before the self-ID-complete worklet which sets the current card generation. Alas, there is no simple way of a race-free implementation. Let's do it this way for now.] Signed-off-by: Stephan Gatzka <stephan.gatzka@gmail.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi')
0 files changed, 0 insertions, 0 deletions