From: zhuweijia zhuweijia@huawei.com
driver inclusion category: bugfix bugzilla: NA CVE: NA --------------------------------
This patch updated param definition in cae module;
Signed-off-by: zhuweijia zhuweijia@huawei.com Reviewed-by: xuyi xuyi9@huawei.com Reviewed-by: liuyumin liuyumin1@huawei.com Reviewed-by: zhongzhaohui zhongzhaohui@huawei.com Signed-off-by: Yang Yingliang yangyingliang@huawei.com --- drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_xsfp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_xsfp.h b/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_xsfp.h index ab14486..9789327 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_xsfp.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_cae/hns3_cae_xsfp.h @@ -42,7 +42,7 @@ struct hns3_cfg_xsfp { struct hns3_xsfp_info { u8 light_module_status; u16 eeprom_len; - u8 sfp_info[STD_XSFP_INFO_MAX_SIZE + 1]; + u8 sfp_info[STD_XSFP_INFO_MAX_SIZE]; };
int hns3_xsfp_cfg(struct hns3_nic_priv *net_priv, void *buf_in,