From: Stefan Richter Date: Tue, 26 Feb 2008 22:30:02 +0000 (+0100) Subject: firewire: fw-sbp2: better fix for NULL pointer dereference in scsi_remove_device X-Git-Tag: v2.6.25-rc4~123^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8436158b1d76e6842856048f287799468b56eb2;p=pandora-kernel.git firewire: fw-sbp2: better fix for NULL pointer dereference in scsi_remove_device Patch "firewire: fw-sbp2: fix NULL pointer deref. in scsi_remove_device" had the unintended effect that firewire-sbp2 could not be unloaded anymore until all SBP-2 devices were unplugged. We now fix the NULL pointer bug by reacquiring a reference to the sdev instead of holding a reference to the sdev (and to the module) all the time. Signed-off-by: Stefan Richter Tested-by: Jarod Wilson --- Reading git-diff-tree failed