summaryrefslogtreecommitdiff
path: root/net/6lowpan
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2022-02-15 02:42:00 +0300
committerDavid S. Miller <davem@davemloft.net>2022-02-15 17:38:20 +0300
commitef57640575406f57f5b3393cf57f457b0ace837e (patch)
tree28ac2d8908ced43c0fe84c3767f7c1746a63c7c1 /net/6lowpan
parent9ceaf6f76b203682bb6100e14b3d7da4c0bedde8 (diff)
downloadlinux-ef57640575406f57f5b3393cf57f457b0ace837e.tar.xz
net: mscc: ocelot: fix use-after-free in ocelot_vlan_del()
ocelot_vlan_member_del() will free the struct ocelot_bridge_vlan, so if this is the same as the port's pvid_vlan which we access afterwards, what we're accessing is freed memory. Fix the bug by determining whether to clear ocelot_port->pvid_vlan prior to calling ocelot_vlan_member_del(). Fixes: d4004422f6f9 ("net: mscc: ocelot: track the port pvid using a pointer") Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/6lowpan')
0 files changed, 0 insertions, 0 deletions