mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[SCSI] SRP transport: only remove our own entries
The SCSI SRP transport class currently iterates over all children devices of the host that is being removed in srp_remove_host(). However, not all of those children were created by the SRP transport, and removing them will cause corruption and an oops when their creator tries to remove them. Signed-off-by: David Dillow <dillowda@ornl.gov> Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
parent
439f61b9f9
commit
911833440b
1 changed files with 2 additions and 1 deletions
|
@ -265,6 +265,7 @@ EXPORT_SYMBOL_GPL(srp_rport_del);
|
|||
|
||||
static int do_srp_rport_del(struct device *dev, void *data)
|
||||
{
|
||||
if (scsi_is_srp_rport(dev))
|
||||
srp_rport_del(dev_to_rport(dev));
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue