diff options
author | Chad Dupuis <chad.dupuis@cavium.com> | 2017-05-31 06:33:50 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-06-12 20:48:05 -0400 |
commit | 914fff102e00455bb867871e612b65524839d271 (patch) | |
tree | c485f60fcf6f0685e3a4cd4ecca4f43dd03d97a5 /drivers/scsi/qedf | |
parent | 12d0b12c57cb7bf0aebf48da79f277330c2552c3 (diff) | |
download | blackbird-obmc-linux-914fff102e00455bb867871e612b65524839d271.tar.gz blackbird-obmc-linux-914fff102e00455bb867871e612b65524839d271.zip |
scsi: qedf: Honor qed_ops->common->set_fp_int() return code.
We need to check the return code the set_fp_int() callback in case we were
not allocated any fastpath interrupts or there was an error setting up the
fastpath interrupts from the qed perspective.
Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qedf')
-rw-r--r-- | drivers/scsi/qedf/qedf_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index a3b040a18535..549598f75c63 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -2035,6 +2035,8 @@ static int qedf_setup_int(struct qedf_ctx *qedf) * Learn interrupt configuration */ rc = qed_ops->common->set_fp_int(qedf->cdev, num_online_cpus()); + if (rc <= 0) + return 0; rc = qed_ops->common->get_fp_int(qedf->cdev, &qedf->int_info); if (rc) |