diff options
Diffstat (limited to 'drivers/scsi/bnx2i/bnx2i_hwi.c')
-rw-r--r-- | drivers/scsi/bnx2i/bnx2i_hwi.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c index 8d9dbb33972f..2f9622ebbd84 100644 --- a/drivers/scsi/bnx2i/bnx2i_hwi.c +++ b/drivers/scsi/bnx2i/bnx2i_hwi.c | |||
@@ -2346,19 +2346,21 @@ static void bnx2i_cm_remote_abort(struct cnic_sock *cm_sk) | |||
2346 | } | 2346 | } |
2347 | 2347 | ||
2348 | 2348 | ||
2349 | static void bnx2i_send_nl_mesg(struct cnic_dev *dev, u32 msg_type, | 2349 | static int bnx2i_send_nl_mesg(void *context, u32 msg_type, |
2350 | char *buf, u16 buflen) | 2350 | char *buf, u16 buflen) |
2351 | { | 2351 | { |
2352 | struct bnx2i_hba *hba; | 2352 | struct bnx2i_hba *hba = context; |
2353 | int rc; | ||
2353 | 2354 | ||
2354 | hba = bnx2i_find_hba_for_cnic(dev); | ||
2355 | if (!hba) | 2355 | if (!hba) |
2356 | return; | 2356 | return -ENODEV; |
2357 | 2357 | ||
2358 | if (iscsi_offload_mesg(hba->shost, &bnx2i_iscsi_transport, | 2358 | rc = iscsi_offload_mesg(hba->shost, &bnx2i_iscsi_transport, |
2359 | msg_type, buf, buflen)) | 2359 | msg_type, buf, buflen); |
2360 | if (rc) | ||
2360 | printk(KERN_ALERT "bnx2i: private nl message send error\n"); | 2361 | printk(KERN_ALERT "bnx2i: private nl message send error\n"); |
2361 | 2362 | ||
2363 | return rc; | ||
2362 | } | 2364 | } |
2363 | 2365 | ||
2364 | 2366 | ||