提交 e36798df 编写于 作者: C chenguangli 提交者: Zheng Zengkai

scsi/hifc: Fix memory leakage bug

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I47Z9P

-----------------------------------------------------------------------

The memory will be leaked when driver set the port_poto_cfg invalid value.
Signed-off-by: Nchenguangli <chenguangli2@huawei.com>
Reviewed-by: Nbaowenyi <baowenyi@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 36b8d291
...@@ -369,7 +369,7 @@ unsigned int hifc_config_port_table(struct hifc_hba_s *v_hba) ...@@ -369,7 +369,7 @@ unsigned int hifc_config_port_table(struct hifc_hba_s *v_hba)
v_hba->port_cfg.port_id, v_hba->port_cfg.port_id,
(unsigned char)v_hba->port_topo_cfg); (unsigned char)v_hba->port_topo_cfg);
return UNF_RETURN_ERROR; goto exit;
} }
/* About speed */ /* About speed */
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
/* B version, B0XX Corresponding x.x */ /* B version, B0XX Corresponding x.x */
#define UNF_B_VERSION "5.0" #define UNF_B_VERSION "5.0"
/* Indicates the minor version number of the driver */ /* Indicates the minor version number of the driver */
#define UNF_DRIVER_VERSION "11" #define UNF_DRIVER_VERSION "12"
/* version num */ /* version num */
#define UNF_FC_VERSION UNF_MAJOR_VERSION "." UNF_B_VERSION "." UNF_DRIVER_VERSION #define UNF_FC_VERSION UNF_MAJOR_VERSION "." UNF_B_VERSION "." UNF_DRIVER_VERSION
extern unsigned int unf_dbg_level; extern unsigned int unf_dbg_level;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册