+22
−4
Loading
stable inclusion from stable-v6.6.76 commit 525dc0f60469fb315d900d7ebcc30a01384e9ad9 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBS4SF Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=525dc0f60469fb315d900d7ebcc30a01384e9ad9 -------------------------------- [ Upstream commit d4a95adeabc6b5a39405e49c6d5ed14dd83682c4 ] The xa_store() may fail due to memory allocation failure because there is no guarantee that the index NVME_CSI_NVM is already used. This fix introduces a new function to handle the error path. Fixes: cc115cbe ("nvme: always initialize known command effects") Signed-off-by:Keisuke Nishimura <keisuke.nishimura@inria.fr> Reviewed-by:
Sagi Grimberg <sagi@grimberg.me> Reviewed-by:
Christoph Hellwig <hch@lst.de> Signed-off-by:
Keith Busch <kbusch@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jingtong Meng <jingtong.meng@windriver.com>