aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_transport_srp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_transport_srp.c b/drivers/scsi/scsi_transport_srp.c
index 44a340bd937b..65c584db33bd 100644
--- a/drivers/scsi/scsi_transport_srp.c
+++ b/drivers/scsi/scsi_transport_srp.c
@@ -265,7 +265,8 @@ EXPORT_SYMBOL_GPL(srp_rport_del);
265 265
266static int do_srp_rport_del(struct device *dev, void *data) 266static int do_srp_rport_del(struct device *dev, void *data)
267{ 267{
268 srp_rport_del(dev_to_rport(dev)); 268 if (scsi_is_srp_rport(dev))
269 srp_rport_del(dev_to_rport(dev));
269 return 0; 270 return 0;
270} 271}
271 272