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@xxxxxxx> --- 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)