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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:13:05 +0000 (10:13 +0200)
commitbd4d527ea5f757dba64a05368b691fd0e6378654
tree4027a9e5bbdaca7b7f51c84454a8a02211856fa9
parent5d326e253501868538da2c7ac602ef797b3720b1
net: hns3: initialize the message content in hclge_get_link_mode()

[ Upstream commit 568a54bdf70b143f3e0befa298e22ad469ffc732 ]

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: 9194d18b0577 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c