Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6551510ybx; Mon, 11 Nov 2019 10:49:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxZ6AE3Tl44KWm6oGZP7I+/Cbqd3jGH1m7YYeMlDyptvdvDPppuj5cgJ2B8771Zihyz1GSU X-Received: by 2002:a17:906:1ed7:: with SMTP id m23mr15544946ejj.326.1573498153511; Mon, 11 Nov 2019 10:49:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573498153; cv=none; d=google.com; s=arc-20160816; b=ekocgi8L8jNS39B5O1NhjETlAy1pgu0w+TrfpTjqX7ZARIkjz98uFkfGPAg5u98OHf tlmb3ycgHVSR5b5eMOqpH1uzm+bgqBEnFBi5PVr6G8E/57AgTVwXRMHsr5cxFLBGQSqH 6RzQVkIPaqamu1rrftpjIP/hVyXcjcq63RUTSuDlZzyiwdg2zryryu0E3jw4BmqZraON xDrGiTenLG4FNQX1Z55+qK8zYKDdF358zeVuIpGyYrW4ubPlja7lqv58I8IAGyJoAGpt nLbisHzbWHxhwzTZp6+Ft719pAyVqXczGOhZMKlTxGuxOUyfSTwU0rpWPwJkOsjsmYbG V14g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wCXpQTteNitmCDaY3itFJjY5nPZGlHbQdAKRQQdyA/I=; b=iVH14Bdeo93Aws5WVMAP0fHEZ2EYcximFMQxH3QNmB2IQm1eGkAFKaofika3lLqNjs jD2OfzBIiE+AfIVX0QLOr5o8qb9Eb53RO6qVMm7ZMI8D/vSNJJEBkFD4UJbaWWtjo2wz 8Afm90jNFOqNwSvtw2TwFddik/uZpRGodOoypEXRSN0htUeY5ovv5YuXvBv56u6I9EzT 9if2srjYmXgN8+Bb0GI696bR1gwY5qK87q7c/vb+S3lTt8f9f3TOIW+h0jKPa3T2XuCQ 9EiIKcYvkR/vFRdwDanQg1BixNccgjHzzUZW8sDEzgOL5CH8ISSRZ2c3z+DbjpjtV3mq D1ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HE26saA8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si10332122edq.297.2019.11.11.10.48.49; Mon, 11 Nov 2019 10:49:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HE26saA8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729854AbfKKSpW (ORCPT + 99 others); Mon, 11 Nov 2019 13:45:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:37438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729847AbfKKSpV (ORCPT ); Mon, 11 Nov 2019 13:45:21 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C0D10214E0; Mon, 11 Nov 2019 18:45:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573497920; bh=kinpNwYLAbFbcv0INl+n+Jk3R5U6KkCib8TlU4z/nx0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HE26saA87IUEPsI+sxm6TT1O/qaQ50bDdWrqCypRZAFCD51NEmO1IV2/Uh6hDkt5h a4O/ANby0C22+mhmlv06fNbCvZQAeBJf9hm/hvVQjFrGqMqstd9tpM90D53QgcRpGN 3KkIaE+SLmynGSXB/FL+BFWaz446RD+b9yqa34v8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Himanshu Madhani , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.19 079/125] scsi: qla2xxx: fixup incorrect usage of host_byte Date: Mon, 11 Nov 2019 19:28:38 +0100 Message-Id: <20191111181450.702770553@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191111181438.945353076@linuxfoundation.org> References: <20191111181438.945353076@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hannes Reinecke [ Upstream commit 66cf50e65b183c863825f5c28a818e3f47a72e40 ] DRIVER_ERROR is a a driver byte setting, not a host byte. The qla2xxx driver should rather return DID_ERROR here to be in line with the other drivers. Link: https://lore.kernel.org/r/20191018140458.108278-1-hare@suse.de Signed-off-by: Hannes Reinecke Acked-by: Himanshu Madhani Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla2xxx/qla_bsg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_bsg.c b/drivers/scsi/qla2xxx/qla_bsg.c index 4a9fd8d944d60..85b03a7f473c1 100644 --- a/drivers/scsi/qla2xxx/qla_bsg.c +++ b/drivers/scsi/qla2xxx/qla_bsg.c @@ -258,7 +258,7 @@ qla2x00_process_els(struct bsg_job *bsg_job) srb_t *sp; const char *type; int req_sg_cnt, rsp_sg_cnt; - int rval = (DRIVER_ERROR << 16); + int rval = (DID_ERROR << 16); uint16_t nextlid = 0; if (bsg_request->msgcode == FC_BSG_RPT_ELS) { @@ -433,7 +433,7 @@ qla2x00_process_ct(struct bsg_job *bsg_job) struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); scsi_qla_host_t *vha = shost_priv(host); struct qla_hw_data *ha = vha->hw; - int rval = (DRIVER_ERROR << 16); + int rval = (DID_ERROR << 16); int req_sg_cnt, rsp_sg_cnt; uint16_t loop_id; struct fc_port *fcport; @@ -1948,7 +1948,7 @@ qlafx00_mgmt_cmd(struct bsg_job *bsg_job) struct Scsi_Host *host = fc_bsg_to_shost(bsg_job); scsi_qla_host_t *vha = shost_priv(host); struct qla_hw_data *ha = vha->hw; - int rval = (DRIVER_ERROR << 16); + int rval = (DID_ERROR << 16); struct qla_mt_iocb_rqst_fx00 *piocb_rqst; srb_t *sp; int req_sg_cnt = 0, rsp_sg_cnt = 0; -- 2.20.1