summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_out.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-03-03 15:02:12 +0300
committerJakub Kicinski <kuba@kernel.org>2025-03-05 05:33:24 +0300
commitf252f23ab657cd224cb8334ba69966396f3f629b (patch)
tree1496e150b744ec0d338419a6ba03335ed5c540e2 /net/lapb/lapb_out.c
parentb9564ca3a2c877cb62bbd22bad5708c3d7cdb186 (diff)
downloadlinux-f252f23ab657cd224cb8334ba69966396f3f629b.tar.xz
net: Prevent use after free in netif_napi_set_irq_locked()
The cpu_rmap_put() will call kfree() when the last reference is dropped so it could result in a use after free when we dereference the same pointer the next line. Move the cpu_rmap_put() after the dereference. Fixes: bd7c00605ee0 ("net: move aRFS rmap management and CPU affinity to core") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/5a9c53a4-5487-4b8c-9ffa-d8e5343aaaaf@stanley.mountain Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions