Skip to content
Commit 751bf4d7 authored by James Bottomley's avatar James Bottomley
Browse files

[SCSI] scsi_sysfs: restore prep_fn when ULD is removed



A recent bug report:

http://bugzilla.kernel.org/show_bug.cgi?id=9674

Was caused because the ULDs now set their own prep functions, but
don't necessarily reset the prep function back to the SCSI default
when they are removed.  This leads to panics if commands are sent to
the device after the module is removed because the prep_fn is still
pointing to the old module code.  The fix for this is to implement a
bus remove method that resets the prep_fn pointer correctly before
calling the ULD specific driver remove method.

Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent dc512814
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