[PATCH] nvme: fix bogus kzalloc() return check in nvme_init_effects_log()
Chaitanya Kulkarni
chaitanyak at nvidia.com
Mon Jan 13 12:01:56 PST 2025
On 1/13/25 09:30, Jens Axboe wrote:
> nvme_init_effects_log() returns failure when kzalloc() is successful,
> which is obviously wrong and causes failures to boot. Correct the
> check.
>
> Fixes: d4a95adeabc6 ("nvme: Add error path for xa_store in nvme_init_effects")
> Signed-off-by: Jens Axboe<axboe at kernel.dk>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch at nvidia.com>
-ck
More information about the Linux-nvme
mailing list