From patchwork Thu May 25 01:06:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9747473 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF90160224 for ; Thu, 25 May 2017 01:06:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1BED26C9B for ; Thu, 25 May 2017 01:06:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6C9927031; Thu, 25 May 2017 01:06:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 37E1326C9B for ; Thu, 25 May 2017 01:06:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162176AbdEYBGr (ORCPT ); Wed, 24 May 2017 21:06:47 -0400 Received: from mail-dm3nam03on0072.outbound.protection.outlook.com ([104.47.41.72]:11776 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1162190AbdEYBGn (ORCPT ); Wed, 24 May 2017 21:06:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wsg0A4mtF/2sBtY0bwto4UAoDPoTDuQ3yT1uxBNceic=; b=fL8g/nQfUjp+OZZv+jqgQhsO9cGcnsEDigfzCRwu5wDnha/xWHFhF9QYkuJEoiIR9882ZixbWBXDORaPSpJSDOymB13jJO0y/osjxQfhWDR07TjgikbFv5dG71LPZNXxjViCXLRbJpn4tLqtpXRPw7nhMsuiH80+qFu9er8+rro= Received: from DM5PR07CA0046.namprd07.prod.outlook.com (2603:10b6:3:16::32) by DM2PR0701MB1018.namprd07.prod.outlook.com (2a01:111:e400:246f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Thu, 25 May 2017 01:06:40 +0000 Received: from BL2FFO11FD026.protection.gbl (2a01:111:f400:7c09::137) by DM5PR07CA0046.outlook.office365.com (2603:10b6:3:16::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 01:06:40 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BL2FFO11FD026.mail.protection.outlook.com (10.173.161.105) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Thu, 25 May 2017 01:06:40 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Wed, 24 May 2017 18:06:25 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id v4P16PPg008945; Wed, 24 May 2017 18:06:25 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4P16PTL008944; Wed, 24 May 2017 18:06:25 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH v2 6/7] qla2xxx: Fix mailbox pointer error in fwdump capture. Date: Wed, 24 May 2017 18:06:23 -0700 Message-ID: <20170525010624.8886-7-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170525010624.8886-1-himanshu.madhani@cavium.com> References: <20170525010624.8886-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39840400002)(39410400002)(39400400002)(39850400002)(2980300002)(428002)(189002)(199003)(9170700003)(50226002)(8936002)(1076002)(54906002)(5660300001)(87636003)(38730400002)(478600001)(8676002)(86362001)(305945005)(356003)(5003940100001)(81166006)(189998001)(2906002)(4326008)(80596001)(42186005)(36756003)(72206003)(2950100002)(105586002)(15650500001)(50986999)(76176999)(101416001)(47776003)(33646002)(50466002)(48376002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0701MB1018; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD026; 1:u3OXZ20yvgbn98H1IIRd0CKFG56D8AaUq2hC3zRFrxhnZAnX96CnZyVV3KGmWm5jvxZcgO3f2DJhTHKkwZ6T3k2zq/YRmd+Nhle/jV+wWFDUZUSVKcCf0eaQA78VklbN1jVSzgQ76ZaeWg1ystRcJhEeX6nrmA+NCZ4PVAghZCeR/0myD97gaDAmlm/LL+WeTfro0BMtQIK0P4fGCPhje6R7Fyw55ztqTUQnTcXI0RS/QXQQcRMzMKJsm3ei//IoD/boYKMUjSet3CTqPTsT4lCodRdGGcJYp7k1lp2isbDk07xHfr6DmRn4iYsAh3LLG5RixECBzfUYK0x2nTxYQJ5V1mlwxjXYxk0aBk90tfYFGAFUbFdFYB5weiJnMXTJpUpbV24k2QEtaGNle4nnKo06br3TsDETTFr6PJZlYwMuWX4AIhjih/BWC+RE3iyA65+3S+wFlkAosjGJg/sGuNBXkE6lI2irRCMep/hPThSk+e86HeOrK8/8N3GTQkdW X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR0701MB1018: X-MS-Office365-Filtering-Correlation-Id: dc977bc9-9707-4399-8204-08d4a30a4d40 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR0701MB1018; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1018; 3:LZICm0aekb5Zfz+SNqki60QeWFBC3/Ksnqkec5c+anx8abhxaOWagJYn0P3jZavB76rOQ82uOvCQxc818OrZ63WpmAZxEE+3DJcli5wU7RLDlJu96KYmOUYgxONs2+eGguBocZQb9xGYOTRet/pof6vEVUOYLBY9G3+DFwqg3ZzOvcmereoPJN7Pidl06MBjm049UOXPeOYpI0/vUXgNTQ+9Bg1TtFb3rpO+BWU3ETJshvJvuJxVdgLCHJ1IT3pqfsWA/x3SeXsd4ux20OFVxjmzO3vW/e99XaueKfhqBEnd1nmGXgow4NyXCWFcA0DondPRoLcRNf47+npy4mK1FtmfItMwV50DBNOSTS9l2ctKnZj7wwxiTOKY9O7QcIX2pjj/D+aWNu9rtLn5flE7QpiuJfgL2lamdE6RfgG0WN3lhwDa9z80F3fiUGEv1vtkN9aXVlNdqdlL2hHQxYK1fM9uUTw+Ulw4zYdKdR1QXVQnxXI5jpl03Mr1vXc+EyMr X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1018; 25:8budh3Lqmuidj/sMceMC/EDHsO829D5Mjp9wxBgY+WX8rEoKp2cL2hgQUfym5LG5a30b/2cPx5EuRGaxzQEKmW3GY3ddW39NGoKvLLabYWlL8DeZv9K1+MTlMV1Raq1mDnoeD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xwRT3g98sb+w3EdY+r/tDxkvGsVmaIrVS2SRhVmLonpYJnQe3+jJgPe5lzrtu6b/bXA0mjPzbC38XfaHbjiN X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(6072148); SRVR:DM2PR0701MB1018; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0701MB1018; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1018; 4:bvSYOEO0z+0zvF/72hn1j9pMKfn6CoP/8GsQVbTMbd/MYjqeZfnuom9mjLNP0bsYP+puhg7UZMK05XPLZh2zZvknQsZpCKGfVmfwq0rNEG6I7fL3LtG4TIuIX2ait16imL3OTQRpn+Znh0MEGwRZAnOv+UoCvDWCz2CxtBoBHxMs8v+BzJVY5M60NL6SUcpIUSlb5l3ZvVDU1+S+VbgLVd0g9ty64XKHvok3kV9ndhKVH8zo9JK3sHC+CpeOT8ggJWIhLQoGQd60Av1viNH8/yCc7wb/da/FHnYpcq6MaQAnJQ5cgDi1rFnGCMg7ueUzEIVGnS6IvOmXwS3edEQrxybZlzWqQJ+ZgimqpaK89WWAZFrHvzW2Cnf7EUYah3eCXXmQ7aB4eMrCAfwuvWQWdp38hyiZOa5+huMZ0XaTg7hByzqbYTmlEbDAAp3uQJHiYkSpuqO5gZK4VctE91UDOhGSqQjVun506Mb4GJJG2RkfIzS92sc9ABTkBoHIb9x1oT6fanZLe/beUsgriolM7sdEjbUz3TtNOyXA0fix7j9ZDe4r934FvUrYPLazlQtYUmhiQZpYYxpQTLUCsvBQkdCMW4lIkwA1PSmm36sFRFo34yo1y8EDYjFugrWjzBxSi/h46uq0VLvXVLG3tXMFpi3Nz4QzgPZJ8rb/HkaWbv/oljtqlQPuxRBWviD3xNBbKas1GrywP5x+IVUBbUBTA1j+ZSQcgdD/P7hNIpxZvgp93U07vVnIeTkLBvsUtuT0R9OGgixDCbqjANMqoHBGvz/RceNHJbY31eEaygsnG3IEtGO2v9TzRMp1duevZgydkj5kDbFAqZpLM4lyJ77hsb1rO/ogeFYdIKWU9bTV64M= X-Forefront-PRVS: 0318501FAE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0701MB1018; 23:XqCzvgbtuwM2pBdY8M6M4vg7V3P39kCZOcNYuDA?= =?us-ascii?Q?oY2SW5BBzKZMVRj/IBhnbjGf66Ycia06VN/TedJ9OoWxloGfALs8Z3yCKXtA?= =?us-ascii?Q?fe/91P2nqqdTf9qhds+94gkMDddaE7DTrFlwu9tm5t0w3ah9GSU/8rvk23kv?= =?us-ascii?Q?N0wiA1rCy//1OU9qy6iwOJbrU4VZufHa0fZCdVZMJyBJd2ccF8L7PvspVP8A?= =?us-ascii?Q?ezbOrv0AvWHG4wdXBcsUEbIlwMohhbO7TD7OmELWhh2Ssn/QJS3BdPfGRJnh?= =?us-ascii?Q?c6GNB8bNvnn9iVgrPO/m5StHJHrrZ5Ytb+ewMpGSoWRpiz6keYGlTRqXrCiE?= =?us-ascii?Q?eHSx+ejEO3argErxOk51AQS1LYNS0cbHhKfA1gJnHp1bWw0hKmgJVQPaHQlZ?= =?us-ascii?Q?aP3fDzPd1Gb2vcCA9aUxuSvnB/D/u8WJfLbKHFdEjHY+YiQt7at6addtRb/w?= =?us-ascii?Q?+cD7NcGl/+CG9QClQ8d5GOvahGjCh4grTLpxSlgrPYoTGCtYzn10uObr+x9X?= =?us-ascii?Q?hCTDMhIptvUy0jvUrDtRlRXuD6t7FF+ID9QPTrEsC9YkbeDS/BLN1T5XnG8o?= =?us-ascii?Q?S6OdEe59SJx5gUqe2qdS48bRtP+LaqCjx8g9yru1ANg5B/vgvtFG8EmvHU0y?= =?us-ascii?Q?M3MuL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16S4w2+IS+cB1nM2tseVf4s9Vc9HaVbXndZc25yvYlCIkZ/yD5Xb72JsDJbQYxhFg7t+R4A==; 5:5FX1Us2ON1P2qEZMy712isRIS5QIymPMCDz+vVX3+VQtMx3zcktDd5OxpwHA/T2L6mL6chmVCFYgGeGvpToPGiErT6Wnsm2aKGiXmWYS7v2j6BQqvmFZWckRdJwwhskQZy80D8v80Y+1QLIJAu4TqA==; 24:Zza2VuDDsCQaL7P8uJHStOmnyleVSqn5riS2w4LVKDK/5ewE9xPpudsUdGdVgxfhQkyzOxcN8w1SpJsyZuYDYhU/pVY9TnewtK+ecX2gxyo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0701MB1018; 7:vxzh7DsQCqnHMKdiRjA82I46og9dwj2CWnoNH2SmVG18Us072EPANOi02PC//BvprcXPuYtiknHFxD2czXa4HeMBFvx8TcbvwxQgAvqMjOZJSZQEPRi5kjT7excAUNdg9rd/6xhl9cZi2NjFnRIT75uEZJ3Lu60zeNS5GK59+eBRkm9KxMr+kHInVl00fc7xJWlRP9CEJwX/5KPpqgDAUv4hxte3BtpWt+Tx5flIEU0vMoK57lntDzalzCM69Hgmle0CsfKWDsHgAk221IN5O87rcQ/cmig0NeKtpM0biWSF6kv69cntay3ldLQ8yRwCPt2+z33nRAGxxjZrXZQjGA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 01:06:40.3568 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0701MB1018 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Joe Carnuccio Cc: # 4.10 Signed-off-by: Joe Carnuccio Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_dbg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_dbg.c b/drivers/scsi/qla2xxx/qla_dbg.c index 51b4179469d1..88748a6ab73f 100644 --- a/drivers/scsi/qla2xxx/qla_dbg.c +++ b/drivers/scsi/qla2xxx/qla_dbg.c @@ -1131,7 +1131,7 @@ qla24xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) /* Mailbox registers. */ mbx_reg = ®->mailbox0; - for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++, dmp_reg++) + for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++, mbx_reg++) fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg)); /* Transfer sequence registers. */ @@ -2090,7 +2090,7 @@ qla83xx_fw_dump(scsi_qla_host_t *vha, int hardware_locked) /* Mailbox registers. */ mbx_reg = ®->mailbox0; - for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++, dmp_reg++) + for (cnt = 0; cnt < sizeof(fw->mailbox_reg) / 2; cnt++, mbx_reg++) fw->mailbox_reg[cnt] = htons(RD_REG_WORD(mbx_reg)); /* Transfer sequence registers. */