lkml.org 
[lkml]   [2018]   [Dec]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] scsi: aacraid: add a check for aac_fib_send
Date
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@umn.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)
\
 
 \ /
  Last update: 2018-12-26 06:52    [W:0.086 / U:0.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site