Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4058098ybx; Mon, 4 Nov 2019 07:11:57 -0800 (PST) X-Google-Smtp-Source: APXvYqwsJao42pYPJC9CSWPYq0eWkVJmlHXpu9kcKFrMuKkYtoUrDDaRTe5xCkRNLo37vm4M7RfH X-Received: by 2002:a50:90a6:: with SMTP id c35mr30036606eda.22.1572880316919; Mon, 04 Nov 2019 07:11:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1572880316; cv=pass; d=google.com; s=arc-20160816; b=0+zUkt7xIJzWRwD+lezt3pj8xV5/GpxZtSgcRn2WbKbVsryZdvLslJMo2dIIzfeI1+ m5iN4iPUX1id0ARt7DFaaf3ym6SnMXh1AIN1RwVjYuNCzPOPVwfZCsliQgOTP8vCxKHq 3m3twY2QwhnKByMHFnZwSudkBQoKx+f/TmER/LKsDDt4Qy8+OKdb/a5fxCCdcsKxvqad XupC5tr1iw/FJm9OgKTgfEmrST6SNtVeSnLtueVhMyAf+Y3hlFN6wmLEHbXj5j3lI3wN IYmKNZxMT19D4O9LM+iYKGm9IQ1ouy73/XeDQMCy90LtWJQn889zyNxRpm8+Mde03Rra Alxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=hLCXeS1gL5d5twtgdHqcQE6EMIGT1P8Aqu39LoHT+IM=; b=YquXab/9pnMalcL1SLqF6kqGBNRmZDwldCgOfUXHbcYsHtQGdTARpj4c9JlCwVyH8j Zs0Io5M6/Jp3ZsEd1U28MHVM41qQUOATvoFnXwrY1Lv3vyQm2AbO9E2eY24bZ3wTJq7o awkrd/8qr+0CFnzKsK0NrzWiGC0kX31tRFCEdlQFmVQtm+r6sjfqStypzJE+VS6dBk1B 8tY5Hk4yAJrQRTUduBnkcHCUp1wzT+BnTTZHJ1OGa+wVuMFzQLGR1WOuM8f/Zb7yCvD/ Vtk160V2BWUvikW9o/LiS3EXAtxZ0IRwQVcCywdGyPguwKvQHrgs+PkL//f8d3kqRfyl r90w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=g507y0VF; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si4287019eju.83.2019.11.04.07.11.32; Mon, 04 Nov 2019 07:11:56 -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; dkim=pass header.i=@microsoft.com header.s=selector2 header.b=g507y0VF; arc=pass (i=1 spf=pass spfdomain=microsoft.com dkim=pass dkdomain=microsoft.com dmarc=pass fromdomain=microsoft.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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729010AbfKDPI6 (ORCPT + 99 others); Mon, 4 Nov 2019 10:08:58 -0500 Received: from mail-eopbgr680098.outbound.protection.outlook.com ([40.107.68.98]:38883 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727796AbfKDPI5 (ORCPT ); Mon, 4 Nov 2019 10:08:57 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f++d+hKklZSlca2GPYTtxnjPbawy3fTZ7eM3yqCH6LVg+SBdaq5L+dNBYaw4kwv04JJkTG5sLyeuEEa3RzgxitgJyFkT0NsfHFCjw/aFvtK8ziuigr5CW+/ZDQ6+5QMtyYvPamTI+OeahHKNoG60HKI53c76zVs2YoOXEKE8yVgNy6GIK75VUJZv3neSdERcSjT4kNO/rDecTn4uA1WgCiqF7uLdvT1RMn9WVvIoL+8vK61Y/56SoyvZbfQY3xIZYmXGk3Hnk3ZYM8RHBRT1H4mxwplKrM9QlxCQof662khXiR5yDQM7yhEND+FFEoYLqS216mqg7GNJorEbcEI2jQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hLCXeS1gL5d5twtgdHqcQE6EMIGT1P8Aqu39LoHT+IM=; b=bmJKmIbthZtQsL8eL/wAgMJgqZdcgR2mjCNs/4Si6VLwi5Qb4T62GLKLKKwYJa+EUKigyjGXWEK7BircnQYTdWreIUvTViAcdlX5iEJTBAPcgZ0YHq8Gq+FtUD7ocJLXccgErCWysDTxCMJ5RNn2mHSVfBJpqWc3NKSfvP2j1g3iBRUtk71V4+Xb6kjSi+Lzi+s0Z4narfnbWAUIBiRbcEN9DD6RQBGcKdni4/XLarsyoLIIqzmO4LognXZD6Pcyk4VPfDRlftdO+xbu3PQBvEIkSgTLv1+LLDdDX7CJKDvzZE9jfoV3Fcz6I7jFfeityZU782+v5qpTaJNiEpw0Vw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microsoft.com; dmarc=pass action=none header.from=microsoft.com; dkim=pass header.d=microsoft.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hLCXeS1gL5d5twtgdHqcQE6EMIGT1P8Aqu39LoHT+IM=; b=g507y0VFrwv450alWGGTEJWCnuCBWXBODklVovobsGmf0XfaqqXDC0HzgyKhOWACcqUy5+SXZS4dDijHETqnPqAj+Fwzbyi/TOUxE+v3E0fbiXiOWjBnPuliLTbxZSFAUoPBo8ZGBO0VA7nBBrANxuRUSaEQiCWW07PoaT3K2u4= Received: from BYAPR21MB1366.namprd21.prod.outlook.com (20.179.59.143) by BYAPR21MB1285.namprd21.prod.outlook.com (20.179.58.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.7; Mon, 4 Nov 2019 15:08:46 +0000 Received: from BYAPR21MB1366.namprd21.prod.outlook.com ([fe80::895e:2ab9:ef45:998f]) by BYAPR21MB1366.namprd21.prod.outlook.com ([fe80::895e:2ab9:ef45:998f%8]) with mapi id 15.20.2430.020; Mon, 4 Nov 2019 15:08:46 +0000 From: Haiyang Zhang To: Markus Elfring , "linux-hyperv@vger.kernel.org" , "netdev@vger.kernel.org" CC: "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "David S. Miller" , KY Srinivasan , Olaf Hering , Sasha Levin , Stephen Hemminger , vkuznets Subject: RE: [PATCH net-next, 2/4] hv_netvsc: Fix error handling in netvsc_attach() Thread-Topic: [PATCH net-next, 2/4] hv_netvsc: Fix error handling in netvsc_attach() Thread-Index: AQHVjdOlMqN/vjaJcUKbzuSUMA+bEad2zieAgARX9eA= Date: Mon, 4 Nov 2019 15:08:43 +0000 Message-ID: References: <1572296801-4789-3-git-send-email-haiyangz@microsoft.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=haiyangz@microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2019-11-04T15:08:39.9166307Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=50585190-9c09-45ff-9f3c-b2383bb559df; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic authentication-results: spf=none (sender IP is ) smtp.mailfrom=haiyangz@microsoft.com; x-originating-ip: [96.61.92.94] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: dd63b10d-399b-4e2e-17cb-08d76138e3f5 x-ms-traffictypediagnostic: BYAPR21MB1285:|BYAPR21MB1285:|BYAPR21MB1285: x-ms-exchange-transport-forked: True x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 0211965D06 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(396003)(39860400002)(366004)(376002)(136003)(346002)(189003)(199004)(13464003)(99286004)(53546011)(76176011)(8990500004)(6506007)(4326008)(7696005)(6666004)(7736002)(305945005)(11346002)(446003)(6436002)(486006)(26005)(2501003)(102836004)(71200400001)(71190400001)(6246003)(186003)(55016002)(6306002)(2906002)(476003)(3846002)(6116002)(9686003)(10290500003)(66556008)(25786009)(33656002)(110136005)(54906003)(316002)(66066001)(10090500001)(229853002)(74316002)(22452003)(81166006)(5660300002)(2201001)(52536014)(8936002)(8676002)(5024004)(256004)(81156014)(478600001)(76116006)(66446008)(66946007)(14454004)(86362001)(66476007)(64756008)(966005);DIR:OUT;SFP:1102;SCL:1;SRVR:BYAPR21MB1285;H:BYAPR21MB1366.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5ibgZl/sFendGpNl8if2v/kXuvXe3aoUDbBF+M8QfU2IVdMPnwDr7prkcTaTS4/sE5x/dY9dbtW9DCmOAF4IUP8equOUmjv/zv0aThe6vkg1bzmcHOB4j7VF3A52HW3m48PUdnFHtO6vf9AbUB1drVHRwY5HuO1grnMHEnJgXS52pIgVVDrwUJ71/nf959aE9AoE8aNnCuJE0Zc3IRD6HYCLRYALdhjkFEYNuyljYi98Ss+jSw3kjwtb0kDIl+0nRhPLsJc/C4OjKWBkVyhf+sKPkIRS1AALMod+b0aFt+WZOgDoa3mzBwyU4B9xFzPTt7XNgJbhw+f0iHCsUcWaZK/48BqWH0Gb33iuGkZC2vmHxDR/DP/TJUU0fXmMP/O4S7+FgHN1f+boTRiso2zTdVswFl4IBh2B/4yBoWbs1SQ1Ph6gyCXRsaSxLT4fACyR Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: dd63b10d-399b-4e2e-17cb-08d76138e3f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Nov 2019 15:08:43.3507 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: j+qLMco07I1h7z35RgkKol9g2cTTWn88BEwZONeKBrpUAWjrjNmb8obrT7JazHhTRkIr6HLrROvgjkGx15QVlw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR21MB1285 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DQoNCj4gLS0tLS1P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