Received: by 10.223.185.116 with SMTP id b49csp4205584wrg; Mon, 26 Feb 2018 13:09:23 -0800 (PST) X-Google-Smtp-Source: AH8x227W3lIdNCf8oXy87JyjdAMbNNTjo2OC/a2rFZr/XWfC61CqoJhtNfX+cy4PPpNuS/75CIhF X-Received: by 10.99.97.7 with SMTP id v7mr9692434pgb.239.1519679363695; Mon, 26 Feb 2018 13:09:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519679363; cv=none; d=google.com; s=arc-20160816; b=kXyhUeU/8Cmm2d1ZHmBfyptrpsh56ifyxpq2f6PWxlSf1KsoSkVTQblKwsj6Np899r BjY8uX6axYWU0XfoKOdWZo/DWjsO6qUDnT467CeGaZyCGAnlxLdeMJrN22sMTQkexIrO Qvr/aVqaPOxZoVHWhz35yttSE0T+ZzN8M1PGz91AzzLrg6aj6zwkwFx5Yt8k0wBzlsbz XdrP1tONUFBXzxW11Ad4ekWpbubygygTPD3V2QO8gVmXzci2WEe3P5sDQk6WuWk1PgAE I3R81t2T0MW7xv2x8twpulvTGYb4FMBboW2o+FFahNSJo48OmPHi9gaZop9IVDeO6ewf 3ETQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Sj8QaG64QqBW83/0P8kE4FEZSz7G+Nj9YQ7ub1J4UyY=; b=dacIvQJ6hlr4Yf6CCHIrfvDd+GOsRYxgJW/uhJZr7woC36b+1F3ctCL0+RygV/PpZo N1xaYXA9T1hLUc9oCmc4thnciCcX+yUQynLNRjTTlG5E6aenhXWkJGm9SQXc4ytE6HtX mtd9ChXoUhwhx5TsQyEpoXVe1lIBVwJ4yqWCCwonuFv3ofLgxMw738aFVu02JhWPMYYA /n3/Jpn51WjPmCz+45fDPaP+BIjKpC985+KMvvB+bjdmO+QxMVToLZ5hgVpkP6ChUDSN GOJmIyXZ1kcox0H7rOUFsRr1rocO0u5hYLexaSuMIBm9n5qdYgao1E151b9a0UX2p3J6 NiBA== ARC-Authentication-Results: i=1; mx.google.com; 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 h11si5926568pgf.720.2018.02.26.13.09.06; Mon, 26 Feb 2018 13:09:23 -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; 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 S1752241AbeBZVHY (ORCPT + 99 others); Mon, 26 Feb 2018 16:07:24 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:58948 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751737AbeBZUQP (ORCPT ); Mon, 26 Feb 2018 15:16:15 -0500 Received: from localhost (clnet-b04-243.ikbnet.co.at [83.175.124.243]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 020E71118; Mon, 26 Feb 2018 20:16:09 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hannes Reinecke , Tyrel Datwyler , "Martin K. Petersen" Subject: [PATCH 3.18 04/13] scsi: ibmvfc: fix misdefined reserved field in ibmvfc_fcp_rsp_info Date: Mon, 26 Feb 2018 21:15:32 +0100 Message-Id: <20180226201527.442649944@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180226201527.242286068@linuxfoundation.org> References: <20180226201527.242286068@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tyrel Datwyler commit c39813652700f3df552b6557530f1e5f782dbe2f upstream. The fcp_rsp_info structure as defined in the FC spec has an initial 3 bytes reserved field. The ibmvfc driver mistakenly defined this field as 4 bytes resulting in the rsp_code field being defined in what should be the start of the second reserved field and thus always being reported as zero by the driver. Ideally, we should wire ibmvfc up with libfc for the sake of code deduplication, and ease of maintaining standardized structures in a single place. However, for now simply fixup the definition in ibmvfc for backporting to distros on older kernels. Wiring up with libfc will be done in a followup patch. Cc: Reported-by: Hannes Reinecke Signed-off-by: Tyrel Datwyler Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ibmvscsi/ibmvfc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/ibmvscsi/ibmvfc.h +++ b/drivers/scsi/ibmvscsi/ibmvfc.h @@ -366,7 +366,7 @@ enum ibmvfc_fcp_rsp_info_codes { }; struct ibmvfc_fcp_rsp_info { - __be16 reserved; + u8 reserved[3]; u8 rsp_code; u8 reserved2[4]; }__attribute__((packed, aligned (2)));