scsi: mpi3mr: Return error if dma_alloc_coherent() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 5 May 2022 10:25:52 +0000 (13:25 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 May 2022 00:16:26 +0000 (20:16 -0400)
commitbc7896d31a922ee9caabb10dc07509f65d41dc0e
tree1119c8314bad0b16bddbd5197cfed3379b9c6796
parente9dedc13bb11bc553754abecb322e5e41d1b4fef
scsi: mpi3mr: Return error if dma_alloc_coherent() fails

Return -ENOMEM instead of success if dma_alloc_coherent() fails.

Link: https://lore.kernel.org/r/YnOmMGHqCOtUCYQ1@kili
Fixes: 43ca11005098 ("scsi: mpi3mr: Add support for PEL commands")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpi3mr/mpi3mr_fw.c