Skip to content
Commit 9b5a3332 authored by Pavel Skripkin's avatar Pavel Skripkin Committed by David S. Miller
Browse files

net: dpaa2-eth: fix use-after-free in dpaa2_eth_remove



Access to netdev after free_netdev() will cause use-after-free bug.
Move debug log before free_netdev() call to avoid it.

Fixes: 7472dd9f ("staging: fsl-dpaa2/eth: Move print message")
Signed-off-by: default avatarPavel Skripkin <paskripkin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f77b83b5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment