]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: fw-sbp2: fix another small generation access bug
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 9 Aug 2008 18:22:17 +0000 (20:22 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 15 Oct 2008 20:21:10 +0000 (22:21 +0200)
commita310773f9f31e69da95dc6891833fb91754ec7b7
tree77478b6c1bc693ba4dbddd4bd14c063846ec63c9
parenta1b37ec22ef44b590b429b60f66d3382c0c5305a
firewire: fw-sbp2: fix another small generation access bug

queuecommand() looked at the remote and local node IDs before it read
the bus generation.  The corresponding race with sbp2_reconnect updating
these data was probably impossible to happen though because the current
code blocks the SCSI layer during reconnection.  However, better safe
than sorry, especially if someone later improves the code to not block
the SCSI layer.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-sbp2.c