]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: minimal: Initialize base_mac
authorJiri Pirko <jiri@mellanox.com>
Tue, 12 Mar 2019 08:40:42 +0000 (08:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Mar 2019 21:55:16 +0000 (14:55 -0700)
commitc8c956c25b3a732feacb0aeae278a7be6412b8a6
tree1881c7dfab78650f58956d87b9f10994c37fc70a
parentdea38895b0dcfadf186b9ef88262ecc7a0ab6d50
mlxsw: minimal: Initialize base_mac

Currently base_mac is not initialized which causes wrong reporting of
zeroed parent_id to userspace. Fix this by initializing base_mac
properly.

Fixes: 4c3b3ab2d533 ("mlxsw: minimal: Add ethtool support")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/minimal.c