diff options
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index 59b16bbb66a..49e1ccca09d 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
@@ -357,6 +357,7 @@ static void fc_rport_work(struct work_struct *work) | |||
357 | if (port_id == FC_FID_DIR_SERV) { | 357 | if (port_id == FC_FID_DIR_SERV) { |
358 | rdata->event = RPORT_EV_NONE; | 358 | rdata->event = RPORT_EV_NONE; |
359 | mutex_unlock(&rdata->rp_mutex); | 359 | mutex_unlock(&rdata->rp_mutex); |
360 | kref_put(&rdata->kref, lport->tt.rport_destroy); | ||
360 | } else if ((rdata->flags & FC_RP_STARTED) && | 361 | } else if ((rdata->flags & FC_RP_STARTED) && |
361 | rdata->major_retries < | 362 | rdata->major_retries < |
362 | lport->max_rport_retry_count) { | 363 | lport->max_rport_retry_count) { |