]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1324cde5a7aa2aa3cb52a113157048a6d12c35d
treeb88bf1841724c76eb1f149586100b3bc425a64a8
parentcb7e715abfc7c107f6b1b1c9d42b1f6b9c862597
net: mscc: ocelot: fix NULL pointer on LAG slave removal

lag_upper_info may be NULL on slave removal.

Fixes: 1dc2d89225da ("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