]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: initialize the message content in hclge_get_link_mode()
authorYufeng Mo <moyufeng@huawei.com>
Thu, 29 Apr 2021 08:34:51 +0000 (16:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Apr 2021 22:41:43 +0000 (15:41 -0700)
commit2de8a56792d8a151bf67adc264b161d46dd37b99
tree2a6d195c2bc09a9f0aa44e1c0e77b28a6a0ca0f3
parentaac4bb7b4792b4d772a87956c3bf550e5d1e349b
net: hns3: initialize the message content in hclge_get_link_mode()

The message sent to VF should be initialized, otherwise random
value of some contents may cause improper processing by the target.
So add a initialization to message in hclge_get_link_mode().

Fixes: b94de5055b8a ("net: hns3: fix the problem that the supported port is empty")
Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c