gianfar: Handle error code at MAC address change
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Mon, 29 Mar 2021 14:08:47 +0000 (17:08 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:59:07 +0000 (11:59 +0200)
commit6157a79cdc089e9b4a0d819cd3070bef9b5cf1e2
treec3b3da8820a42fe2ea0b8109285bf661f4dfe21b
parenta3210f911ec4e2392a855d394e3bab0bb6e2e0f1
gianfar: Handle error code at MAC address change

[ Upstream commit bff5b62585123823842833ab20b1c0a7fa437f8c ]

Handle return error code of eth_mac_addr();

Fixes: 3d23a05c75c7 ("gianfar: Enable changing mac addr when if up")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/gianfar.c