Commit f91bbcb0 authored by Himanshu Madhani's avatar Himanshu Madhani Committed by David S. Miller

qlcnic: Free up memory in error path.

Signed-off-by: default avatarHimanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: default avatarShahed Shaikh <shahed.shaikh@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0d138d9
...@@ -210,10 +210,10 @@ int qlcnic_fw_cmd_set_drv_version(struct qlcnic_adapter *adapter, u32 fw_cmd) ...@@ -210,10 +210,10 @@ int qlcnic_fw_cmd_set_drv_version(struct qlcnic_adapter *adapter, u32 fw_cmd)
if (err) { if (err) {
dev_info(&adapter->pdev->dev, dev_info(&adapter->pdev->dev,
"Failed to set driver version in firmware\n"); "Failed to set driver version in firmware\n");
return -EIO; err = -EIO;
} }
qlcnic_free_mbx_args(&cmd);
return 0; return err;
} }
int int
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment