From: Chad Dupuis Date: Wed, 31 May 2017 13:33:50 +0000 (-0700) Subject: scsi: qedf: Honor qed_ops->common->set_fp_int() return code. X-Git-Tag: v4.13-rc1~136^2~194 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=914fff102e00455bb867871e612b65524839d271;p=karo-tx-linux.git 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 Signed-off-by: Martin K. Petersen --- 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)