Commit db996ed1 authored by Jens Axboe's avatar Jens Axboe Committed by Greg Kroah-Hartman
Browse files

nvme: fix bogus kzalloc() return check in nvme_init_effects_log()



[ Upstream commit 170e086a ]

nvme_init_effects_log() returns failure when kzalloc() is successful,
which is obviously wrong and causes failures to boot. Correct the
check.

Fixes: d4a95ade ("nvme: Add error path for xa_store in nvme_init_effects")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent e1951c16
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment