提交 c70a19f7 编写于 作者: S Shaozhengchao 提交者: Yang Yingliang

net/hinic: Magic number rectification

driver inclusion
category:bugfix
bugzilla:4472
CVE:NA

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

Magic number rectification
Signed-off-by: NShaozhengchao <shaozhengchao@huawei.com>
Reviewed-by: NLuoshaokai <luoshaokai@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 6a0dfdaa
...@@ -1429,7 +1429,7 @@ static int __hinic_set_coalesce(struct net_device *netdev, ...@@ -1429,7 +1429,7 @@ static int __hinic_set_coalesce(struct net_device *netdev,
struct hinic_nic_dev *nic_dev = netdev_priv(netdev); struct hinic_nic_dev *nic_dev = netdev_priv(netdev);
struct hinic_intr_coal_info intr_coal = {0}; struct hinic_intr_coal_info intr_coal = {0};
struct hinic_intr_coal_info *ori_intr_coal; struct hinic_intr_coal_info *ori_intr_coal;
char obj_str[32] = {0}; char obj_str[OBJ_STR_MAX_LEN] = {0};
u16 i; u16 i;
int err = 0; int err = 0;
......
...@@ -3890,8 +3890,8 @@ char *__hw_to_char_port_type[LINK_PORT_MAX_TYPE] = { ...@@ -3890,8 +3890,8 @@ char *__hw_to_char_port_type[LINK_PORT_MAX_TYPE] = {
static void __print_cable_info(struct hinic_hwdev *hwdev, static void __print_cable_info(struct hinic_hwdev *hwdev,
struct hinic_link_info *info) struct hinic_link_info *info)
{ {
char tmp_str[512] = {0}; char tmp_str[CAP_INFO_MAC_LEN] = {0};
char tmp_vendor[17] = {0}; char tmp_vendor[VENDOR_MAX_LEN] = {0};
char *port_type = "Unknown port type"; char *port_type = "Unknown port type";
int i; int i;
int err = 0; int err = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册