Message ID | 150853628024.28275.16848478856833596251.stgit@brunhilda (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 5168460234 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 20 Oct 2017 21:51:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 42AE328F67 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 20 Oct 2017 21:51:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3538828F6D; Fri, 20 Oct 2017 21:51:57 +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 A1FFB28F67 for <patchwork-linux-scsi@patchwork.kernel.org>; Fri, 20 Oct 2017 21:51:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753508AbdJTVvz (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Fri, 20 Oct 2017 17:51:55 -0400 Received: from mail-by2nam03on0052.outbound.protection.outlook.com ([104.47.42.52]:5408 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753380AbdJTVvv (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Fri, 20 Oct 2017 17:51:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=QjSovK2vh10oBv7lTGUcHwVKVpUdgI/35iKZX96tZFs=; b=IyvyM6cJB88SjjfnzNds5GMoeUbYo7Y1sz4KMCz4Jx/ab7RcE+bYWsufSQ9VPCY64UgfesN9cPI32TtI22xdZV5lkSrur0XRKgnHCBOt+QA4DHnVLZ+Jh+UHWVq1UHQAyNy75phRZd79re5L3FCkISWWsWrNPwAGZi6ltQQMxxs= Received: from BN6PR02CA0038.namprd02.prod.outlook.com (10.173.146.152) by SN1PR0201MB1838.namprd02.prod.outlook.com (10.162.228.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 20 Oct 2017 21:51:50 +0000 Received: from BY2FFO11FD021.protection.gbl (2a01:111:f400:7c0c::160) by BN6PR02CA0038.outlook.office365.com (2603:10b6:404:5f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4 via Frontend Transport; Fri, 20 Oct 2017 21:51:49 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.21 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.21; helo=avsrvexchhts1.microsemi.net; Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BY2FFO11FD021.mail.protection.outlook.com (10.1.15.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Fri, 20 Oct 2017 21:51:49 +0000 Received: from [127.0.1.1] (10.238.32.34) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Fri, 20 Oct 2017 14:51:21 -0700 Subject: [PATCH 03/12] hpsa: clear tmpdevice in scan thread From: Don Brace <don.brace@microsemi.com> To: <joseph.szczypek@hpe.com>, <gerry.morong@microsemi.com>, <john.hall@microsemi.com>, <jejb@linux.vnet.ibm.com>, <Kevin.Barnett@microsemi.com>, <bader.alisaleh@microsemi.com>, <hch@infradead.org>, <scott.teel@microsemi.com>, <Justin.Lindley@microsemi.com>, <scott.benesh@microsemi.com>, <POSWALD@suse.com> CC: <linux-scsi@vger.kernel.org> Date: Fri, 20 Oct 2017 16:51:20 -0500 Message-ID: <150853628024.28275.16848478856833596251.stgit@brunhilda> In-Reply-To: <150853443786.28275.17878578984391668998.stgit@brunhilda> References: <150853443786.28275.17878578984391668998.stgit@brunhilda> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916004)(39860400002)(346002)(376002)(2980300002)(438002)(189002)(199003)(106466001)(110136005)(16576012)(69596002)(33716001)(50466002)(2950100002)(83506002)(68736007)(77096006)(86362001)(2201001)(478600001)(9686003)(356003)(4326008)(103116003)(305945005)(53936002)(316002)(106002)(33646002)(5660300001)(81166006)(76176999)(81156014)(2906002)(54356999)(189998001)(50986999)(58126008)(104016004)(230700001)(47776003)(97736004)(8936002)(8676002)(23676002)(921003)(1121003)(83996005)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR0201MB1838; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD021; 1:ONsVZA782yQmiOwnPrLUfHRUE0Ojfex0gxvt+YoILka54IZIJzT5qPP+smaziHPECiU7ozB7PqDFV0cE++GlKnZgGwRRFeew5V7r8IgWxZz3E+BrBOmafemgGF/V1t2s X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e87d04f3-e519-4115-9a65-08d51804c45b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:SN1PR0201MB1838; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1838; 3:GhytiXqEWV3TBWrny2A/pVBY9yn3vK8fHeycxfWuXFkinRQ5FV3GpdH+8UXzJ7MJaw3y/+HoSFCE83RkraUSsFTi4Nndk1vAC1hahPq+p718M8H6fLWgk7cBQs9SslhvLbGIYFVYjiF9IpWVsSs6lofPAGoP6famp/Sv1FCbxCZFo5trCxC1179UIDBU3HYu71L1FKWJUiggyZlQJxS+BMGqXNnDjfV78BXSA1w008zZbLhbhgMu16Pq6MeBu61TUTPBcih9pL1os87Hk89LsLtBAm6qIoc+Fbffp/fdi8GTuA65jjKhHAhQ6nCLNr0iJoSrMUG+vBiSB7LBU/Q31ajG8T1nGU2rtets1BNMC1o=; 25:BY82izmYFMAXKG5hu30pQWVgZG+BiwG9S117gSKKjPaUu3XzC9w9Xxx3U8/PIuICL88tGmRdyQhpXm8mYZ9n36zASUYqJy37wJ2orEox7JIyiQV1t+XCL3NtIgEKEVesYRnsUAtf2GLPE8wFGzKaVNtMVtmW1F6p4PVARRDLN8RfjR/YW+97tJO6eDYMpaSSKwp43V6S8pYmNtBtUsMqV0WFL9KIpXr/FVQRiqBCvNVFaNSH9eCC+l2B4GS/Fd68FeX0byh9m3posDgyJD3v+5maIPSdvRH6RTQyDGl4O6zufLUcVb3x1/ToR85hUJb45N8zrnf7I2tEqyGEPtVslw== X-MS-TrafficTypeDiagnostic: SN1PR0201MB1838: X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1838; 31:ywZ0vt6dhzW8JvTE7zP8PqXqyZVI0Mu78MKmQbC0WtSH3lGfoK8Byau+2/VOxupfeVbffaCSJZYazisXuw02yRnELkIQ8+yi4JnsEU2Y+/iiTjv7+u09FXUhmktrvxRF9VYDTLmtWIenM4kry+s81XAZdfDZZSlg0LFcBQBrDfi/L8F2F6oN5RWHg7RL4hwB0UpPZjsIR9oIgWm75c6haN9G0EmRS32t+efQtqaIwYs=; 20:7T96D7uheVg3wzEH2c6TCoG+6fs413QwYNNkSmHJaGU7oiyLtYWJB3V3eIrN5mBiG3xdGzYBDtciyk5ImwriW/Yvjeueoxu93jRa13E//TcPy2N+NCqEqmDCxxs3cZVGUDKRCXEi22ziqyrGxVI5R8/U7Be8B9Nv+nHRPWhEnc+pe022/4K0+YPpvrbi5XvxW3Elo+pW5qgXEwmz3ctzBhgVCXwGceuHGSCB+IW7+jSpvC89zgo7064XYR2T2MSwAuL1qGoT1Vj1WNzpomYndosE9CPSp5BwtAIuNWKL7xv2mhcTa0B/xcDX0SwJE+wrcQ0vyPc4xS/S7tZ02uvLytheuNHn6ugMPWbyxVxL41sermq70lKARtQM1WGfg78AaRe0vlaea67w7VlaGkdV/phSm8PpZWzX4QHXnaH1uO6/lIJxXXVe57mNa2FAm+76iV6+DVh+K/nld2U/CGWkxXrpiEeC1ZfwU57t7euclz0w8Pig6hnvUMI1my7PA5z+ X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: <SN1PR0201MB1838CE2C2DAF2368CD07849BE1430@SN1PR0201MB1838.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(93006095)(93004095)(10201501046)(3231020)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN1PR0201MB1838; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN1PR0201MB1838; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0201MB1838; 4:U4oUMHj+7WVkPG8P9ME5LB6by2f05EdDEIcWwQ+Xs0Q7k9xhhvw35BwiNa7vew+hkXqRvPc623lrCU5IScW4wNfUnzWDbo4mAVU84lzGR4+5nmjcPLSPWuOW4p3EGgTEJGwwJSZhVoOlH3omG+W/krVMplM5LPvfAKVR1Ku5GksMMWBmDHBPYEVRlbjIIuur3oyrR6lzopaUanzQYButcrI2hAfVMp6F3VOKm72LaV6MTS7zuYb0CwlxlEmupNQa0WB23jFzQuFaEEVZ4ZS+NhFRxwfkosmw9tFevKokuFM= X-Forefront-PRVS: 0466CA5A45 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjAyMDFNQjE4Mzg7MjM6RG4vekwxY2kxTXFMbHB1RDdUZmZMZlMy?= =?utf-8?B?bUFaZ0pEVWlTbHFNWHV1NXVSbzJZcW5PSTNhckZmUG5nbU40WElzTEtLdjI4?= =?utf-8?B?c2o0WWc1cG1hRGxUdFpEZi85YVR4K3V4Qkp1ODd1MitYM0ZPK1l2OXJKMlBj?= =?utf-8?B?ekE2K3AycVB3QjNna2tXUE1lcERBNU91alZCVVpkQUJ4Q2tPS1RiK0RWeU1k?= =?utf-8?B?dnQzVzQ1TytiSENmYzYrMWRMZHRXa0pzU1c2bUNnVWNJY284VzdMVHBiTldz?= =?utf-8?B?SUtyT0N4NzV6dHhHS1RjWHRkSVFrc2VUK3BucEtoY3JuNkhJWWZhK2xNZ2RE?= =?utf-8?B?b0NIZXlxdXBTMFFQV0hWNks4N2JnazF2SDJ5Z0x6ZUVIWlY5M1pPMDdkVkF1?= =?utf-8?B?NmJOOHBxdlkrZmFCZU1XUnA0Y01ZTUp6VjlwOEF5U0FRTGczL3dX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Fv58n9JJx5u8ZrQE/hz+PqZVK+rn4Z11gPY61WDcdAs6Tnyxz2yhmrgNCzwYrsOQeMmB/QPcq4Hi/f+zBVZK7fCZ8SNU8SbevGk3/LdAahlZv4sWifs64QBFs99OTT8U5mgYLMSSHtK2FOV+c4lu7mXCFmwzZl7nJDaDvxk9b24Two= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2017 21:51:49.3882 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0201MB1838 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 76461c4..0330f17 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -4258,6 +4258,8 @@ static void hpsa_update_scsi_devices(struct ctlr_info *h) int phys_dev_index = i - (raid_ctlr_position == 0); bool skip_device = false; + memset(tmpdevice, 0, sizeof(*tmpdevice)); + physical_device = i < nphysicals + (raid_ctlr_position == 0); /* Figure out where the LUN ID info is coming from */