]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: switchdev: check br_vlan_group() return value
authorClément Léger <clement.leger@bootlin.com>
Thu, 21 Apr 2022 10:12:47 +0000 (12:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Apr 2022 22:12:18 +0000 (15:12 -0700)
commit0389c7aadc858e16821e1e09a9ae929d7ca19094
tree1203e8603abefdd9a13e4f815c0312939fb1400d
parent74221b4c20aca52e552605705ecb652835300ea5
net: bridge: switchdev: check br_vlan_group() return value

br_vlan_group() can return NULL and thus return value must be checked
to avoid dereferencing a NULL pointer.

Fixes: bb1ca20da57f ("net: bridge: mst: Notify switchdev drivers of VLAN MSTI migrations")
Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Link: https://lore.kernel.org/r/20220421101247.121896-1-clement.leger@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_switchdev.c