Skip to content
Commit f8436158 authored by Stefan Richter's avatar Stefan Richter
Browse files

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: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
Tested-by: default avatarJarod Wilson <jwilson@redhat.com>
parent d395991c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment