> We may need to clear mqd before returning on error to guarantee kfree() won’t 
> see an error pointer at scope exit.

Would you like to take another look at a corresponding implementation detail?
https://elixir.bootlin.com/linux/v7.0-rc4/source/include/linux/slab.h#L517

Regards,
Markus

Reply via email to