Skip to content

Commit 72b4a04

Browse files
YueHaibingmartinkpetersen
authored andcommitted
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>
1 parent d1f38d9 commit 72b4a04

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/qla4xxx/ql4_os.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7232,6 +7232,8 @@ static int qla4xxx_sysfs_ddb_tgt_create(struct scsi_qla_host *ha,
72327232

72337233
rc = qla4xxx_copy_from_fwddb_param(fnode_sess, fnode_conn,
72347234
fw_ddb_entry);
7235+
if (rc)
7236+
goto free_sess;
72357237

72367238
ql4_printk(KERN_INFO, ha, "%s: sysfs entry %s created\n",
72377239
__func__, fnode_sess->dev.kobj.name);

0 commit comments

Comments
 (0)