diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-12-20 11:16:07 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-01-08 21:57:25 -0500 |
commit | 72b4a0465f995175a2e22cf4a636bf781f1f28a7 (patch) | |
tree | 799ee452733cf86a3209d572cc1f4eb07fdd1e65 /drivers/scsi/qla4xxx/ql4_os.c | |
parent | d1f38d995e984db36449661fcbad1649c21883e7 (diff) | |
download | blackbird-op-linux-72b4a0465f995175a2e22cf4a636bf781f1f28a7.tar.gz blackbird-op-linux-72b4a0465f995175a2e22cf4a636bf781f1f28a7.zip |
scsi: qla4xxx: check return code of qla4xxx_copy_from_fwddb_param
The return code should be check while qla4xxx_copy_from_fwddb_param fails.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_os.c')
-rw-r--r-- | drivers/scsi/qla4xxx/ql4_os.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index 949e186cc5d7..1bc4db6e6d16 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -7232,6 +7232,8 @@ static int qla4xxx_sysfs_ddb_tgt_create(struct scsi_qla_host *ha, rc = qla4xxx_copy_from_fwddb_param(fnode_sess, fnode_conn, fw_ddb_entry); + if (rc) + goto free_sess; ql4_printk(KERN_INFO, ha, "%s: sysfs entry %s created\n", __func__, fnode_sess->dev.kobj.name); |