aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-03-03 12:02:12 +0000
committerJakub Kicinski <[email protected]>2025-03-05 02:33:24 +0000
commitf252f23ab657cd224cb8334ba69966396f3f629b (patch)
tree1496e150b744ec0d338419a6ba03335ed5c540e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
parentnet: cadence: macb: Synchronize standard stats (diff)
downloadkernel-f252f23ab657cd224cb8334ba69966396f3f629b.tar.gz
kernel-f252f23ab657cd224cb8334ba69966396f3f629b.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c')
0 files changed, 0 insertions, 0 deletions