]> www.infradead.org Git - users/jedix/linux-maple.git/commit
nvme: fix bogus kzalloc() return check in nvme_init_effects_log()
authorJens Axboe <axboe@kernel.dk>
Mon, 13 Jan 2025 17:27:54 +0000 (10:27 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 13 Jan 2025 17:27:54 +0000 (10:27 -0700)
commit170e086ad3997f816d1f551f178a03a626a130b7
treea875389a186984860e174a360b2f4befac542ad2
parente494e451611a3de6ae95f99e8339210c157d70fb
nvme: fix bogus kzalloc() return check in nvme_init_effects_log()

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@kernel.dk>
drivers/nvme/host/core.c