James Smart a1a553e31a scsi: lpfc: Fix silent memory allocation failure in lpfc_sli4_bsg_link_diag_test()
In the unlikely case of a failure to allocate an LPFC_MBOXQ_t structure, no
return status is set, thus the routine never logs an error and returns
success to the callee.

Fix by setting a return code on failure.

Link: https://lore.kernel.org/r/20210412013127.2387-9-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2021-04-13 01:39:13 -04:00
..
2021-01-22 21:14:09 -05:00
2021-03-24 22:58:33 -04:00
2021-03-24 22:54:24 -04:00
2020-03-11 23:07:59 -04:00
2021-04-13 00:16:42 -04:00
2021-04-06 00:50:17 -04:00
2021-04-12 23:21:26 -04:00
2021-01-22 21:14:07 -05:00
2021-01-22 21:14:08 -05:00
2021-01-22 21:14:07 -05:00
2021-02-22 10:24:58 -08:00
2021-01-22 21:14:08 -05:00
2020-02-24 14:54:25 -05:00
2020-03-11 23:07:59 -04:00
2021-03-24 23:07:14 -04:00
2020-09-02 22:49:06 -04:00
2020-08-23 17:36:59 -05:00
2021-04-13 00:20:48 -04:00
2020-12-07 20:24:09 -05:00
2021-01-22 21:14:07 -05:00
2020-10-14 15:15:35 -07:00
2021-01-26 22:11:17 -05:00
2020-12-07 20:24:09 -05:00
2020-12-07 20:24:09 -05:00
2020-08-23 17:36:59 -05:00
2020-10-14 15:15:35 -07:00
2021-03-24 23:03:43 -04:00
2021-02-22 10:24:58 -08:00
2021-03-29 23:09:10 -04:00
2020-12-01 14:53:39 -07:00
2021-03-18 23:35:54 -04:00
2020-10-14 15:15:35 -07:00
2019-07-11 15:14:01 -07:00
2021-04-13 00:20:48 -04:00
2020-02-24 15:01:57 -05:00
2021-01-22 21:14:10 -05:00
2021-04-13 00:20:48 -04:00
2020-10-14 15:15:35 -07:00
2021-01-22 21:14:12 -05:00
2019-07-11 15:14:01 -07:00