mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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>
This commit is contained in:
parent
d1f38d995e
commit
72b4a0465f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user