+6
−2
Loading
The xa_store() may fail due to memory allocation failure because there is no guarantee that the index csi is already used. This fix adds an error check of the return value of xa_store() in nvme_get_effects_log(). Fixes: 1cf7a12e ("nvme: use an xarray to lookup the Commands Supported and Effects log") Signed-off-by:Keisuke Nishimura <keisuke.nishimura@inria.fr> Reviewed-by:
Christoph Hellwig <hch@lst.de> Reviewed-by:
Sagi Grimberg <sagi@grimberg.me> Signed-off-by:
Keith Busch <kbusch@kernel.org>