Just a quick drive-by. For these simple cases where we just need to make
sure that memory is freed using drmm_kmalloc and friends should help
simplify things. Probably not worth it for radeon, but figured I'll throw
it out there.
For more functional code switching to drmm is harder because you
Applied. Thanks!
Alex
On Fri, Jan 6, 2023 at 5:00 AM Liwei Song wrote:
>
> Fix below kmemleak when unload radeon driver:
>
> unreferenced object 0x9f8608ede200 (size 512):
> comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s)
> hex dump (first 32 bytes):
> 00 00 00 00
Fix below kmemleak when unload radeon driver:
unreferenced object 0x9f8608ede200 (size 512):
comm "systemd-udevd", pid 326, jiffies 4294682822 (age 716.338s)
hex dump (first 32 bytes):
00 00 00 00 c4 aa ec aa 14 ab 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00