aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2016-06-01 14:16:50 +0100
committerDavid S. Miller <[email protected]>2016-06-01 22:02:01 -0700
commitbfa49cfc526201119623de6593d284c96563bede (patch)
tree99ec5e5b9fe2eb2bfa96d313966d22676f315787 /net/switchdev/switchdev.c
parentfc14963f249f9aca1ac84c9c8659b4f35e0a315e (diff)
net/ethoc: fix null dereference on error exit path
priv is assigned to NULL however some of the early error exit paths to label 'free' dereference priv, causing a null pointer dereference. Move the label 'free' to just the free_netdev statement, and add a new exit path 'free2' for the error cases were clk_disable_unprepare needs calling before the final free. Fixes issue found by CoverityScan, CID#113260 Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Max Filippov <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions