aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorHarshit Mogalapalli <[email protected]>2023-04-28 05:59:33 +0000
committerLuis Chamberlain <[email protected]>2023-05-22 21:13:13 +0000
commitd36f6efbe0cb422fe1e4475717d75f3737088832 (patch)
tree1ab07fc5ff08142fb69becd47de6d6006548c712 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentLinux 6.4-rc3 (diff)
downloadkernel-d36f6efbe0cb422fe1e4475717d75f3737088832.tar.gz
kernel-d36f6efbe0cb422fe1e4475717d75f3737088832.zip
module: Fix use-after-free bug in read_file_mod_stats()
Smatch warns: kernel/module/stats.c:394 read_file_mod_stats() warn: passing freed memory 'buf' We are passing 'buf' to simple_read_from_buffer() after freeing it. Fix this by changing the order of 'simple_read_from_buffer' and 'kfree'. Fixes: df3e764d8e5c ("module: add debug stats to help identify memory pressure") Signed-off-by: Harshit Mogalapalli <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions