Re: [v2] drm/amdkfd: fix a memory leak in device_queue_manager_init()
From: Markus Elfring
Date: Sat Jan 10 2026 - 02:20:45 EST
>>> But it's also harmless.
>> How do you think about to avoid special development concerns here?
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v6.19-rc4#n1242
>
> No. I think the WARN is used exactly as it was meant to be here: to check for something that should never happen.
Do we stumble on another target conflict at such a source code place?
Would you like to avoid undefined behaviour here?
https://wiki.sei.cmu.edu/confluence/spaces/c/pages/87152449/EXP34-C.+Do+not+dereference+null+pointers
Regards,
Markus