Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2289068imm; Thu, 7 Jun 2018 08:14:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJAvMPfZ7cCW8HJDnV1IxqQ8GfZrpvGFpMqTu+ppNI/ZK8NhVeegh+RP/3DYk3mKIsJ+msr X-Received: by 2002:a17:902:b60c:: with SMTP id b12-v6mr2557811pls.44.1528384490072; Thu, 07 Jun 2018 08:14:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528384490; cv=none; d=google.com; s=arc-20160816; b=xniSnhmF3dNhMG0dkw0NrV/WGQU6Csc0irhVGvZ0jkfCkXkOk4Vxawo25Pb2gPgDJ/ bTHebkrG7IyL6DzqaXNLRLPLsExnOFd+Uimql3pZI4Mc4DRNAvRO029I6+Ov6Pnjd1gM blXQYdlZlwv8nJLIK9AfqvqyMoMKoNqToh97j7Kv+zT1wW+xkm9V08zqGegT/L5oyJdE XChN9n/ZV/Ozu+TyJYqKip4sacCvJeNmJKiWSVa7uq3ToSl/T4zKMRCGvzB83q6FDKuU fzGSmbbm7MvfksBEFMH8gnNIl50NAsvCIIIXOQFcoSNI9MiamnfgsDDCHoFcC+nfeQN+ CSog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=WiH6HcwTUY01eiZ4TBf9Uc69j5dG3QOD89T6OSDDWQc=; b=s7NMQ+sTiQCzVlFnvyrY/ymLPn+tHoCUjKSMO6Pw0twCXvK8wjrW4BfW85dF0FQNsm 0KMb2kf8n9nwHr4l9N0cQpa3qDdaDoyp5HnTyxfBuY+D2wKzInYuIJPaN2vWKEcgH0Mu mGqsGloENr/G4wjKF3MWlyTPRaGMoGLKmuyx/8321TD90PIZGsYoxeYpw57OEMx0KdMc 30abDQ1xxzyeXWNQYA0URDMkP6iuYm0VnVAZDPMKmHSbeMqubGI7VrVfFmUJ3yHMdrhh BESXYJWfcUiOhwYEWfSkLbtjP/PFITF73y/qpZ7FpjJhvtT2BtoUy/R168r2XXls6xWY nteg== 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 b4-v6si43639257pgc.190.2018.06.07.08.14.35; Thu, 07 Jun 2018 08:14:50 -0700 (PDT) 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 S964900AbeFGPCR (ORCPT + 99 others); Thu, 7 Jun 2018 11:02:17 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41425 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935493AbeFGPCB (ORCPT ); Thu, 7 Jun 2018 11:02:01 -0400 Received: from [148.252.241.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fQvbk-0005hO-4Z; Thu, 07 Jun 2018 15:09:44 +0100 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1fQvb4-0002xl-Rq; Thu, 07 Jun 2018 15:09:02 +0100 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "Tyrel Datwyler" , "Martin K. Petersen" , "Hannes Reinecke" Date: Thu, 07 Jun 2018 15:05:21 +0100 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 179/410] scsi: ibmvfc: fix misdefined reserved field in ibmvfc_fcp_rsp_info In-Reply-To: X-SA-Exim-Connect-IP: 148.252.241.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.57-rc1 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. Reported-by: Hannes Reinecke Signed-off-by: Tyrel Datwyler Signed-off-by: Martin K. Petersen [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings --- 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 { - u16 reserved; + u8 reserved[3]; u8 rsp_code; u8 reserved2[4]; }__attribute__((packed, aligned (2)));