diff options
| -rw-r--r-- | drivers/scsi/qla2xxx/qla_target.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 596480022b0a..0b6c5f92cb8e 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c | |||
| @@ -4290,6 +4290,7 @@ int qlt_lport_register(struct qla_tgt_func_tmpl *qla_tgt_ops, u64 wwpn, | |||
| 4290 | if (rc != 0) { | 4290 | if (rc != 0) { |
| 4291 | ha->tgt.tgt_ops = NULL; | 4291 | ha->tgt.tgt_ops = NULL; |
| 4292 | ha->tgt.target_lport_ptr = NULL; | 4292 | ha->tgt.target_lport_ptr = NULL; |
| 4293 | scsi_host_put(host); | ||
| 4293 | } | 4294 | } |
| 4294 | mutex_unlock(&qla_tgt_mutex); | 4295 | mutex_unlock(&qla_tgt_mutex); |
| 4295 | return rc; | 4296 | return rc; |
