diff options
| author | Dan Carpenter <[email protected]> | 2025-03-03 12:02:12 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-03-05 02:33:24 +0000 |
| commit | f252f23ab657cd224cb8334ba69966396f3f629b (patch) | |
| tree | 1496e150b744ec0d338419a6ba03335ed5c540e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | |
| parent | net: cadence: macb: Synchronize standard stats (diff) | |
| download | kernel-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
