OSDN Git Service

net: mscc: ocelot: fix NULL pointer on LAG slave removal
authorClaudiu Manoil <claudiu.manoil@nxp.com>
Tue, 5 Nov 2019 21:50:14 +0000 (23:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2019 23:16:17 +0000 (15:16 -0800)
commit3b3eed8eec47259939ee6c3d58aea1c311ddee3b
treeb88bf1841724c76eb1f149586100b3bc425a64a8
parent7afb3e575e5aa9f5a200a3eb3f45d8130f6d6601
net: mscc: ocelot: fix NULL pointer on LAG slave removal

lag_upper_info may be NULL on slave removal.

Fixes: dc96ee3730fc ("net: mscc: ocelot: add bonding support")
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot.c