[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20181226055103.74893-1-kjlu@umn.edu>
Date: Tue, 25 Dec 2018 23:51:03 -0600
From: Kangjie Lu <kjlu@....edu>
To: kjlu@....edu
Cc: pakki001@....edu,
Adaptec OEM Raid Solutions <aacraid@...rosemi.com>,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] scsi: aacraid: add a check for aac_fib_send
aac_fib_send could fail, so add a check to its return value: If it
fails, issue an error message.
Signed-off-by: Kangjie Lu <kjlu@....edu>
---
drivers/scsi/aacraid/dpcsup.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/scsi/aacraid/dpcsup.c b/drivers/scsi/aacraid/dpcsup.c
index ddc69738375f..0fbdc0dbf9d8 100644
--- a/drivers/scsi/aacraid/dpcsup.c
+++ b/drivers/scsi/aacraid/dpcsup.c
@@ -271,6 +271,8 @@ static void aac_aif_callback(void *context, struct fib * fibptr)
FsaNormal,
0, 1,
(fib_callback)aac_aif_callback, fibctx);
+ if (status)
+ pr_err("failure in aac_fib_send: %d\n", status);
}
--
2.17.2 (Apple Git-113)
Powered by blists - more mailing lists