From patchwork Fri May 19 18:30:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9737913 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 8CE30601C2 for ; Fri, 19 May 2017 18:31:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 845B828573 for ; Fri, 19 May 2017 18:31:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7903728579; Fri, 19 May 2017 18:31:23 +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 D49EB2856E for ; Fri, 19 May 2017 18:31:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756339AbdESSag (ORCPT ); Fri, 19 May 2017 14:30:36 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:35772 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755837AbdESSa0 (ORCPT ); Fri, 19 May 2017 14:30:26 -0400 X-IronPort-AV: E=Sophos;i="5.38,365,1491235200"; d="scan'208";a="20046458" Received: from mail-sn1nam01lp0116.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.116]) by ob1.hgst.iphmx.com with ESMTP; 20 May 2017 02:30:24 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=NhqOYC9MoQvVz+nmHV6D78F4rXetE/GbXfcvu/hhShM=; b=MSJLxurORMXFXxt7QQt+HVT5ox78GdO3g2VIequMSAWDlI/I7jKTYKICNSZ+fcNtTp3ArCK11ZWOrbu2CZtyaisCRUyef+vy3+yjDhNx7eoqAQ4iHtk3xbip82uZVajBSi/CxYk5JYb1pYI3TzmTVaPUxWCPR35LrM74qLqtNVA= Received: from MWHPR04CA0099.namprd04.prod.outlook.com (10.174.173.40) by MWHPR04MB0367.namprd04.prod.outlook.com (10.173.48.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Fri, 19 May 2017 18:30:22 +0000 Received: from BN3NAM04FT016.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::207) by MWHPR04CA0099.outlook.office365.com (2603:10b6:301:3a::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Fri, 19 May 2017 18:30:22 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT016.mail.protection.outlook.com (10.152.92.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Fri, 19 May 2017 18:30:21 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 32.5A.29323.BB93F195; Fri, 19 May 2017 11:30:20 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Fri, 19 May 2017 11:30:18 -0700 X-AuditID: 0ac94369-548749800000728b-91-591f39bb9f37 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 00.47.18148.AB93F195; Fri, 19 May 2017 11:30:18 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , Bart Van Assche , Christoph Hellwig , Hannes Reinecke , Long Li , "K . Y . Srinivasan" Subject: [PATCH 15/18] scsi: storvsc: Initialize driver-private command before using it Date: Fri, 19 May 2017 11:30:13 -0700 Message-ID: <20170519183016.12646-16-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170519183016.12646-1-bart.vanassche@sandisk.com> References: <20170519183016.12646-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRmVeSWpSXmKPExsXCddJ5ke4eS/lIgxP32S0WvNnLZrFy9VEm i439HBZPVm9lt+i+voPN4vi1g8wWy4//Y3Jg95g26RSbx+6bDWwerTv+snt8fHqLxWP9lqss Hp83yQWwRXHZpKTmZJalFunbJXBlNO36xFawlb1iQvM85gbGGWxdjJwcEgImEg9bJjOB2EIC S5kkHreWdzFyAdk7GCWeTlnDAlO0qOcHC0RiM6PEi+NXGUESbAJGEt/ezwQrEhEolLi0rYMR pIhZ4D6jxOPetWAJYYFwiQP71wCt4+BgEVCV6NliABLmFXCQaNu6gxligbzE2S07wWxOoPjL 4wvZQcqFBOwl7vfVg4yUEFjGKtH2/CUTRK+gxMmZT8DGMwtISBx88YIZ4gN1iZNL5jNNYBSa haRsFpKyBYxMqxjFcjNzinPTUwsMTfWKE/NSMouz9ZLzczcxQiIhcwfj3SfehxgFOBiVeHgT fslFCrEmlhVX5h5ilOBgVhLhjTaRjxTiTUmsrEotyo8vKs1JLT7EKM3BoiTOe05maoSQQHpi SWp2ampBahFMlomDU6qBce9vleu7PSP0fI82PFu+SH3nh72zXnF8D54Vqddazcu3tPJq4pWY j77V15Mfvlp47MHRhUabXvU9Xxb++VDf8cw5N93Y3l/bUDhNLrukrLbgl+Di9Gr3J0/7Hwfq 2X/21HWrKi2teZXOdl5+e/hOsWV7Wv9pnv8rW+34Zs+XNwuWMp+9Ky5z9awSS3FGoqEWc1Fx IgCcSQwxgAIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNJMWRmVeSWpSXmKPExsXCtZEjRXeXpXykwbY5JhYHf7YxWix4s5fN YuXqo0wWG/s5LJ6s3spu0X19B5vF8WsHmS2WH//H5MDhMW3SKTaP3Tcb2Dxad/xl9/j49BaL x7Q155k81m+5yuLxeZNcAHsUl01Kak5mWWqRvl0CV0bTrk9sBVvZKyY0z2NuYJzB1sXIySEh YCKxqOcHC4gtJLCRUWLe2TIQm03ASOLb+5lgcRGBQon7p08D1XNxMAs8ZJQ4ePoII0hCWCBc 4sD+NUAJDg4WAVWJni0GICavgIPEzY8WEOPlJc5u2ckMYnMChV8eX8gOUiIkYC9xv69+AiP3 AkaGVYxiuZk5xbnpmQWGRnrFiXkpmcXZesn5uZsYwcHDGbWD8fpE80OMTBycUg2MziZssoxB zgcClxbod1rbXdFeqRkX/8pAQXr/rNm7lu493FL3qT5Cutp97sfOyIDZXarGGjsOrHvToTW1 hPW4b7dPhqjmjr2+i3pvded3Hgl+op12QuS/b93DVWa/V2smnc/7/MSisWQ9r5LfZmXJyzEn JIQXHlsQ73fSNzd7dsW6TxU3JtcosRRnJBpqMRcVJwIAarsvQc4BAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39450400003)(39860400002)(39850400002)(39410400002)(39400400002)(2980300002)(438002)(189002)(199003)(9170700003)(54906002)(47776003)(478600001)(189998001)(5660300001)(53936002)(36756003)(72206003)(76176999)(305945005)(1076002)(6666003)(5003940100001)(50226002)(356003)(2950100002)(8936002)(77096006)(38730400002)(4326008)(8666007)(50466002)(86362001)(45080400002)(48376002)(106466001)(33646002)(50986999)(81166006)(2906002)(8676002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0367; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT016; 1:NVbP7EEMiHTMKepPkQnxbG4v3+KNykAWj1JeNb5d5SCzjAl7eGyfF00EBTAcHVkJVLG+YDAH7ii7BeuD7TKETv8qsffwORjmWW1aAqmCxZny7oxa+FjaG60knin8vOudp314m8JhKNVWE/2VRXy1aqBYf8iysAtEpuSp7ZXzCJEq+Xr9IRBSZSnsrBLKoe/SeIdEIhosBYM9xIiVniAov7sgKuU5MwQh5BA9Lf/z4ToXcCH/Zw9FZmuhQEFV1wywzy1h0OFEf3B0tnhU2wYk6rb7BTUvP1rlV6nORaI6xVa2RxKRba5H1ZoJIDcKu5RsLLkRg0nOfUv1OQYO6B+FU0+vlhS3XmXDdidh8vShvDU+z6gVS1Xn3Geh3yTauUuiWTpPNZZ2GfyidsejMzqvzE5enC0qNKFI+s2aiqhsneEiKfzQ/1kyFNlAixHvhW+0ZQRkTkvycmGPyULROPaaDrCJTrihzs6euVb/rNMlCI9Mc4ym/m7tet34Bpk12XzhqvC1FcqSaXgKBbu2BEhVQTwYYY5ikO/zxZ9ZH/csVzk= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR04MB0367: X-MS-Office365-Filtering-Correlation-Id: d2c70564-180a-49f2-8677-08d49ee51bd0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:MWHPR04MB0367; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0367; 3:Qq6URmpWu3aEdRi9v91UU0s4WRxulFnuLu+oQ//yWBiq2jrUUsOBFYrY9HNww/1SsDBnDIEWw9hCJsNNjqRvg/vvEcCu91Mk5oYJqEyojUJ49bI4/9a7b7aSVP+zZtp8QIWYJp3M6TNv4QNRGpOjhJjWYOg3YTGSo2fu3q8i/3HownTQEXp7Muq65A4VXlPKxqW9QZy0eIUsS26wrvNHygBh0RkhMPqvYO2BNsZVZQwW7Lyn87yRzNlJtjOqSdsS1g0KqAdOEdlwkT6dXlr2B/YKTcl345LMhqHxSRtcFiDO6Y8bT5Omp4dwh+C9yexg+KRvkf7LpKizRCOrmH+gB+EntomVD0XBw/ozm4rUVQtfQGTuri8grIZmM5c73QGHLCkGpJSCt26E7x0xo9HF1Saj5pT7tXmylISODndZBU0UDIwEpzI7eRJvB7icr/9K+y/yTLmV71WDu0lf6/JWrW+eg9v7tvHdJozG/9UEdrdBscW0cwIsAMXGQ719qv67 X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0367; 25:RapLvOTgnKCOh8wtDMarDVg3Qly49j8EbgQZXKXISDVFWY2pXan02BSdIc0sqXgqmOnIl2QNIf9wrsO+fDHnwrs/ENq8M+GqUxDA247usnpEhQYqXDMsSlBJu2RC3y122OubeER/bU/6I5zUhyalN/f11Kdz2/QuPuyhl37cCyrmXoLYY9RN+w9oiNS2OwBJiMI6F1Tm689h3+L5JwVVLXRKi8SrWi3sHkUc+g4LapA7IaUZnGZrxsHxThXeSOrlMMyLDF+t4p1UJMuw2ygcHxywjI2EBvrvZqGQnH5FPlSqdh/cFQ5QrXBE7+/RKKyADveDv62uLOpHndp6ZDaiDuDeMhs1pgxlmypUKb/Ssx3czbCrosxlx+ThkfaScWQkrORZmlpiVIDD6sdV2TyodHL/d3ClL4FFF02ITN6DUjglUECZH+j35lX1vytP/AaLyYGJOqaoVIqa7WoqeotA3nX0q0p85Q2FWE18NJqCqLc=; 31:UgBAsFWfa7pMmkQdXV+/ZPca6CE8G08RDBJbHwjaGbolTcypzdg+V4mWsy+XF4Ewa+tPwFACyf1FkB0D7Vb27xE1AkKtmNltmcn4nlW7qb9Z4mxsKkNbG+sYOHLYo3QMzHh6lvNRIRAASrAemtx1GHoBKcA94T6bNXSugx0ISgY+Ew0b7u+9XzwrWNk8yRIOwLE7fDPax71xsSzI+Yl7i7Ea8mb+pQoZz7zPbtYLkRLiaoz+YHujTk5Itn+e09GDKM3XnQeXY2uvKJZZ1UWKRQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0367; 20:naJ5ysgq6A5t4jbi/xFDxay/9+hOLhIW3RvISf3KBv9jMQgKqD7wxRYApGqN4mp9v0OTNh3fVIDrkojo9AWHPv3U8MJZ0oIirBWIhUNlYfLHKMwGvJvxH63Ms7Hu/ZEgUQTdhM1O8pCaJtZu7+RfleT5o1XAo6HIAA4U26f5CVEbaxVRSGGkLZxPDpI6cTq3jIlQTJRxKIjhiqEoyssz+/ZHJ6Sv34+YNM6cVWT/rQXvi+hDp0l3sjtRAqiIojMmCLqFN2taMjEgGedkOkcc4EhdmK7seYATrvvSKwDiKIgcE556T1Vq/LCu7NPJq5pDkIhY60GtMDeVb/nxw7aNN/d0ISlABQ1r7xl1uVgi8mH7pN9dmBtR9JfXEtnw5gS7EYRjrh181Uu0fdrXUHZLTsWZQNJuDYEPvqQlJ00ZZa1kKZBkQ8BqV/fnDqlZng/zy4IAAAJH5XhX3UHTFTZdFk/MehaFYiloVRVlcbVGBXhIdREmW3OxrR75+Ig9GdJd X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123555025)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148); SRVR:MWHPR04MB0367; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0367; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0367; 4:6f6SnYUOj0z/tkSEqSZlDRngsW5x+i5Uh2OKnDdZdh7L9HG0T/7NLHPpJBDGMIvgtVJIQQLMJ/imLSA+9HFOaj19kazkM5mRVLywb0fNlnad6rSrdlOaXrDFuYd+rsyQnEfqa9GrWdlpz9rfHRijH9lU5u9nVk/sp71wfmLaLnUKEQTkGWH/11uj43R0aoAlunyDacd+5KhJdjvhCHq9ioHmH4TK9gbHOyzadqLVzEQsUsvjGgSPdnVsIMDOqlLIUyjuK/GkNCU22+zdY89Tj4+JDFi4LA1IhD92AkxDB9wzLscQpTbHGKQCd/C6pVs/q3hi0BwQkpsOY7oyYJxK8D1hnbXNKHdH/eagNlhlmuWA2J3z6TNwFkdYsvdkH7O0uwPEVGPqjDHvBNv6CzcYQBBlvnrQlFQlvkgfyXtPOUkWe3jVzLs5bmfv13DBxO6yxQS0sv1XRwK1uBWsLsfJ0GpJQexRmKDAOWei/WPf7bJRSaytahyhieHdHNRgIfwnX1SyS6hx4q3N8xf57GYnbT9UlHTKF87kbR9egfddUeAO1Wwaw494Xa2+YPkF6C6U+8LpM0YinKzh3UZJGJ5tY5Msocp+nO6mvPIFffushIYLUxiy+qFcloFKK1slAow8jrV0MgZjJ1zysdRBhhtDUgcFCFobGKRkjV0k74xzy8Qe+HrP947Cgd1OdChCyUDTEqhTqxhe8KBHYRF1k+7L8N0+kOEx+R6vDmfB2vm+CokDvMeeqlMf5TlDqp6Pyi9YEDxLUryTRK4UuwBie6ZtyEkgxyjKYUFZ5+xcCiSLcFhot+FGW5umteZCv2Aifb9PPMxmT7oCdq74IbZOGPBmydMkVyCmFZRCuY7tvhblPhzv0qAmH+vfltwXF4lqYtNV X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0367; 23:jARjUOQqVT0VGoyxV8FBUXl2jJHEQfD3oOqrKOVNk?= =?us-ascii?Q?lZgtPuhT0GwXObeYInqbz9rxHktLboljmOYfBnMLPOeiRyk6mVUW3pPH25YN?= =?us-ascii?Q?UpmsCzpZ+qtg2AcZpI6Rhjn7qRgywdqOgcp5ICCTFpPE7K4OUSowCRsTW7P6?= =?us-ascii?Q?1mktGQyjEI3N1YCgjHS1KWzVBtllSrgUzNbeekjh5YRI/BEANJ0LuIwByKN3?= =?us-ascii?Q?fYHfJ935MmGa1AfewJ1ZX8Etf04JiA2l7kl2+1rdysLtNwTdr0D9+yX7Zk3M?= =?us-ascii?Q?IbEJb367TGkE+4aomiOlLXmpO8y4JeXkCsUIneKb6px/wxDNxo1oaUdDF/FK?= =?us-ascii?Q?cMUU1yeTIxJeWXiA/ehjYXocjvRFbIzJY2ilethVLs10sw0gS9c+drNHI2tT?= =?us-ascii?Q?7GLPcKrsaNAWAB7X5fiHl9PWnKPoh13jTnq3ElCSkIOLaWWBC57i2q2heJT3?= =?us-ascii?Q?uuLHDvnKdv3wp9CnIVr9v6jAcPWdC2M24OoczOwJdzWijhOgkqMS2IKRRsLh?= =?us-ascii?Q?MVA+GDVNmKRHHq8Y8lYlGgURvF3spRMJBx7aayaQJzVgdyBJYzztTcSkUavR?= =?us-ascii?Q?SsSjCR1/iQj3lgUjm/l1uqWUKs4ncelXbYJ2WDFP9ymc9lCqreUQVEhcFRns?= =?us-ascii?Q?/EIz5WCUfpTPfq+2vDTSzu2JVixm+8ox90/3IVbnmhW1qo2SAy3QFtvLkHRw?= =?us-ascii?Q?WqB5h7zV87snuTUcRqivkbOEbd+t7SJGx6eNEBHZzz8bBMqN7ifaVn2Xjrp7?= =?us-ascii?Q?83qyQzn4XD/nrqXyHaWY+6Py7+0j0UTZuvyBDfiS32chtCeNa7qexTzn8T+0?= =?us-ascii?Q?WL2gfHUbyFOdp9q08LwWFB0ASeWdPs8Ou2HSZx6/QmlVsKZKvMADWVJnBzq0?= =?us-ascii?Q?ht8qZfy45Y76QUyb/unuGs3nSNls0u3bXVcKTuU11wfeQzfWc4u806s70eeH?= =?us-ascii?Q?b+P0wln8ibidHDLukjcd2ucMh1uyKuw7In7npgR3SwjOc2dkw0r7f+GzTNvy?= =?us-ascii?Q?HlaeDg+kroBf3E/GmyWXw/9X94Wa4DIgH61SfAFNFLpuFgNbpI4qWER/u3dZ?= =?us-ascii?Q?rAX0AhvP0zJ+j7Q3TZSItjou0P9EAYdxJeYlX1nNDbeWc+ocg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0367; 6:RoY6+etZwoK4uYjc82cFrtMTpLyWmLaC7DiSCwTsKRPeu0giu1SEg1A5YjUZStGsxUYOBzMZ+PE45YTo6dzxd5ldAJ2Q8S4IOXm4NvtdW1kbFDyXX97Nz/EAr8SWncxNNgrfQoKehJtB/d6Mb/3CgFvB7+8cET+HISnSiszJ2TzDFpric8gyUBxyuXkivt4Rbc4wobPDinepf7vzgSu3o+w9UVh82qrTg1lbVI0uALUNrvhbl362BXX9Byzl9qYcV47v56ffMU+dixb9p92ELLooTgvr7zsYNTbZiRj1jUh7FCpeHcELoTVOvfyrBj1ZGBcVnQG4xOY4c7i51X57vXVNrlbox/8zBcTZ2o9wqGaK8I+dYOihSihTLP9sT2mcnyQFfzybseTr5BrK9YUxp72xX48gYXTJr0KP+q/50aM+N9mBZz71DzRy8rKa6jgkt5IYMvxjyTVuBHPVXoc2vppwCastEDJDU1Y+upcuHh3rOh8kYa5G5tAsW6SyFq0LILfLQYZCLi6GD36+uaQ8yg6xZR9Ot6I/DKKpunN9xvc=; 5:M7cHuz2D1QXweMmxRYd4PlLvLISC63h/oRrsxJllxbs/5HiLsHRnZFQqHpMNUrx2edqJVZqrKltQEXUu8qMRe6zGtQPmsgxwth1b0Z847QRZCxyPw2DdF+tiL7LYs3IsgLGZkeeJFz7igOFy9rBXMA==; 24:yYHicxeIVCYQDgjr5KjUQA3TuOFb2hsz9+Nht7EXw0jhfWqHz802D43IYOB3De4iSJMVAZhUc0LfJnZDbeXXR0QB0dGkE+iE9scs0Q4HwzE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0367; 7:yw06p1tA8ECl4S8Xxoc8eAbavAuxmOVVlTj/Vd1yETDefecR7Bg801ShKaYrpsqtUn3pYpvJ3k+W2OcQLCqgsYTeMc9ZR+e0cJLLebC81lOHSkg3u6pAwJEjDZ5RXXDdf2UxQ6u5uM+Zn36LsWEEr9fYFC23Fyp4X9qMPqs+2SCEGT1Z0/YQl6vZrhEoPqks1xpgg/HWyyuTiPYKVdtp/mJi+GYQ8NJ9lDJbLDZLuh0yHr8fYW3XJITIIvq1D0qvdrNHuJu70ZHaH6EXHGZufFQ+PWpCYdNNpdManPyUoXRGtVG3GAAvUphTx38x/U9ErZy7cogId9KoXKWQCMiuEw==; 20:6/uJ94cxPFRCIyihOXHuKKl0pivK4UcvbzAibFapCs4AlSM1CsHbzUcst26a1t87Xgsl73Rj0uns3VNOywTJ0AjLfYeJenkbtjID2vQ6ITrwjCLKQgg6HYzLWUhS73sjUxrVVWEjJ2mfMQkC7vqZUv0abCCm1CW9+iF/9uvX2Co= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 18:30:21.0401 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR04MB0367 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 The storvsc driver is the only SCSI LLD that uses driver-private command data and that does not zero-initialize that data before reading it. Make this driver consistent with the other SCSI LLDs that use driver-private command data. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Long Li Cc: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 8d955db6424f..cc08593c5218 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1550,6 +1550,7 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd) } } + memset(cmd_request, 0, sizeof(*cmd_request)); /* Setup the cmd request */ cmd_request->cmd = scmnd;