summaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorBrigham Campbell <me@brighamcampbell.com>2025-08-13 10:02:37 -0600
committerTomeu Vizoso <tomeu@tomeuvizoso.net>2025-09-01 12:11:28 +0200
commitce6b656b5d64d612e9fc1c495eba6a362051c2ca (patch)
treeba5eb43dd48aec4a60f7e71aba4b99ef4d93e5ac /rust/helpers
parent503b0ed38ca60cfb5ba101517a680beebd38d377 (diff)
accel/rocket: Fix usages of kfree() and sizeof()
Replace usages of kfree() with kvfree() for pointers which were allocated using kvmalloc(), as required by the kernel memory management API. Use sizeof() on the type that a pointer references instead of the pointer itself. In this case, scheds and *scheds both happen to be pointers, so sizeof() will expand to the same value in either case, but using *scheds is more technically correct since scheds is an array of drm_gpu_scheduler *. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Julia Lawall <julia.lawall@inria.fr> Closes: https://lore.kernel.org/r/202508120730.PLbjlKbI-lkp@intel.com/ Signed-off-by: Brigham Campbell <me@brighamcampbell.com> Signed-off-by: Tomeu Vizoso <tomeu@tomeuvizoso.net> Link: https://lore.kernel.org/r/20250813-rocket-free-fix-v1-1-51f00a7a1271@brighamcampbell.com Fixes: 0810d5ad88a1 ("accel/rocket: Add job submission IOCTL")
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions