diff options
| author | 2021-07-09 17:24:18 +0300 | |
|---|---|---|
| committer | 2021-07-09 11:01:01 -0700 | |
| commit | ad297cd2db8953e2202970e9504cab247b6c7cb4 (patch) | |
| tree | 1ec9fb422276fe114ec28422dad5313fcb9cb93f /include/linux/raid/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com | |
| parent | net: moxa: fix UAF in moxart_mac_probe (diff) | |
| download | linux-dev-ad297cd2db8953e2202970e9504cab247b6c7cb4.tar.xz linux-dev-ad297cd2db8953e2202970e9504cab247b6c7cb4.zip | |
net: qcom/emac: fix UAF in emac_remove
adpt is netdev private data and it cannot be
used after free_netdev() call. Using adpt after free_netdev()
can cause UAF bug. Fix it by moving free_netdev() at the end of the
function.
Fixes: 54e19bc74f33 ("net: qcom/emac: do not use devm on internal phy pdev")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/raid/git:/git.zx2c4.com/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
