Re: [PATCH] block: Check blkg_to_lat() return value to avoid NULL dereference

From: Markus Elfring
Date: Wed Feb 12 2025 - 08:03:35 EST



> This patch adds checks for the return values of blkg_to_lat and let it

See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.14-rc2#n94


> returns early if it is NULL, preventing the NULL pointer dereference.

return?


Regards,
Markus