Received: by 10.213.65.68 with SMTP id h4csp43547imn; Mon, 19 Mar 2018 18:59:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELunlXpyX35s6RsVcEdrcWWOJ69gRXObtaMJWZZrBZ/s+FF/eKyaV/gnSJeguV8a4oV+BoVH X-Received: by 10.98.100.147 with SMTP id y141mr12058014pfb.131.1521511172196; Mon, 19 Mar 2018 18:59:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521511172; cv=none; d=google.com; s=arc-20160816; b=zzmWgDtM0/FWIoZbN+cMmItpQuS3oxWnwaQbgxUeeL9HJ1PwMNwVgcl7wt+23B3JBz KWOGpXW5xFH1KB5JqKKmBmz6QiRvQgLmteQUAtd1LugI5k7Rch1sZOJSw7NoiauPDiEQ O3HZHo4BwhmIynntWPn4Xvrl8Dtj1qllsBEZE6paezepTkh1+HAYK0rmm38SRGlxS7nh hwMnCiPQZsZ2Hn1/7Z7yZqJujoNc8E3th+4t1ZqWToLp7FsJB6L74A8KFxbEebBzgIM1 OG6aaA+C0pWvVao7b5xabOmPewE1H1RPnqflZTMXKcp0kg/ZmOXeIv00yjePq3E5qOmT 0YyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=PZ8GOgC23qphzL2HGDG99OlOgZEFWGRH/xY+gthJIfQ=; b=Y1hT35u+j16J2AarfwxMWUdLXIxWXh4Xi/iTCP4UQaEJd4keDfFPgQqlIba8Nrq4ke IOhBucvFweYMZeWj1X4viO2jCEEUZNyV5z1IVdjiYZVLvc0eOtR3LK1YN0hs2XQLdDmr S29wiIXhF7+uPjzkEYhzTVM2JTkqM8mbSf4J0ztyE3wDbIGDzYipquiI6lrZSenK4+Ze 6zgPLU6DIjesvuFb6/TGb0QVWbUDmK5ys7VhakwodUreXgUO/W6DwA9/0RWrlgVZygcL 4HHcaxvquR/OUzBZZFydkcC68FhZdgJiG+6Mv4657faf4hEHf+skyUvnu+9v7ScVewwd TxQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=UxrSLdWw; 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 o188si417370pga.132.2018.03.19.18.59.18; Mon, 19 Mar 2018 18:59:32 -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; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=UxrSLdWw; 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 S1032473AbeCSWRc (ORCPT + 99 others); Mon, 19 Mar 2018 18:17:32 -0400 Received: from mail-cys01nam02on0123.outbound.protection.outlook.com ([104.47.37.123]:7883 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933985AbeCSPtt (ORCPT ); Mon, 19 Mar 2018 11:49:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PZ8GOgC23qphzL2HGDG99OlOgZEFWGRH/xY+gthJIfQ=; b=UxrSLdWwnXE2SvRVi6JQKdSoeacWxQGCRBvwRElfOipMWFePR1+0KmniQPCc9NGXWp069f/AQo1/4n/mE+bhH8HBvHQH63PyLyROnb1UadCnCuI24XrZrjAA47NobiAfIonaC022HKIyaO6TBQryAgymf3cIvAncaRxIyVQa2OE= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0919.namprd21.prod.outlook.com (52.132.132.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.631.0; Mon, 19 Mar 2018 15:49:41 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::3d9b:79e7:94eb:5d62%5]) with mapi id 15.20.0631.004; Mon, 19 Mar 2018 15:49:41 +0000 From: Sasha Levin To: "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" CC: =?utf-8?B?Um9uYWxkIFRzY2hhbMOkcg==?= , Lukas Wunner , Marcel Holtmann , Sasha Levin Subject: [PATCH AUTOSEL for 4.15 100/124] Bluetooth: hci_bcm: Validate IRQ before using it Thread-Topic: [PATCH AUTOSEL for 4.15 100/124] Bluetooth: hci_bcm: Validate IRQ before using it Thread-Index: AQHTv5nHIDv3fJyLV0aMvSmRe0XLZA== Date: Mon, 19 Mar 2018 15:48:51 +0000 Message-ID: <20180319154645.11350-100-alexander.levin@microsoft.com> References: <20180319154645.11350-1-alexander.levin@microsoft.com> In-Reply-To: <20180319154645.11350-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB0919;7:R8jd3bksdKehJ4JajWKSxtS+JCO++uMZTXS78C7ZQHjxlPxA5jMQdvdqY7jnnDSIxDHWeP9YnoqidB7xvrSVqGx6ZMesmjjEvAAMWenLZbDzzvvPJBsTdkOm1NPbbePYbRen8N0XhmILRzaP2Ri6e3hdI4/afzayqlAFRnUxd2xyXR5l79iyd1642AIhsaob82GOCx5jTe5JWsrC4NGKK2Mq9pk5zUNzrs8OfQ1qnL5hfPAwNg8ttjlJVWXcZCdh;20:qqM0dgIT7e3kOY4CstlbikBbTPZ7gp7CGu9nrNnTViLiBv7qiHWP/cCcS/qFWHh6BTB+ecjyMV4a9qNX71HAwTt53PNk+lrMQEMfNEXI+Io2/GFVU0GetVdTFmCdiY6l4r9yAtnSeqMm7gDfDlwWrvDwjmtXlnQoCJlxF9n3AQ0= x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a1ba7ecc-de14-4422-2a73-08d58db1073e x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0919; x-ms-traffictypediagnostic: DM5PR2101MB0919: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501300)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DM5PR2101MB0919;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0919; x-forefront-prvs: 06167FAD59 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(376002)(366004)(39860400002)(396003)(39380400002)(346002)(199004)(189003)(15650500001)(6512007)(5250100002)(106356001)(99286004)(102836004)(2501003)(6116002)(59450400001)(1076002)(3846002)(186003)(10090500001)(76176011)(6486002)(25786009)(316002)(26005)(22452003)(68736007)(6436002)(5890100001)(2900100001)(54906003)(2950100002)(6666003)(72206003)(81156014)(3660700001)(4326008)(7736002)(110136005)(305945005)(478600001)(3280700002)(6506007)(97736004)(81166006)(8676002)(10290500003)(575784001)(66066001)(2906002)(86362001)(105586002)(8936002)(53936002)(36756003)(14454004)(86612001)(5660300001)(107886003)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0919;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: CFEK+0Odvw5Pq8bI4Xv3YDN1cgb1OMsPhqYRtSUM6smy4XP0ddfHN889r3pQFQzPA/5CB9jBXv2LH/7g5YYUcMUVqbab8ihJnOwBIqic4LGrb436sN7lfI3W12fXbUgHBdvKLDbgoW6309Gmij5e7vLrFueB1kAws2ZyKHQrZEHhcxPHIHKcSxJqVVxSF8v/Nk6kmPxXz5wGSrl8C4dpumxh7zvw7N6wj2DuZl++ngsI7vgvECt/J+oXPh47uLmN34HapjdrRbbi9x0e/K4O7y9uhLvIO8JVvgdYlwvsj64tOC3aWBt3eMfldt2LYa++m7m/rqrBdhAP7L+yJyu91Q== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <7D5CEE6FB7AD964DA1F1C2958B3A6CB2@namprd21.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1ba7ecc-de14-4422-2a73-08d58db1073e X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Mar 2018 15:48:51.9851 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0919 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org RnJvbTogUm9uYWxkIFRzY2hhbMOkciA8cm9uYWxkQGlubm92YXRpb24uY2g+DQoNClsgVXBzdHJl YW0gY29tbWl0IDRhNTlmMWZhYjkxZTk0NDVlMzRjNjlkOGU0NDAxYTBkNmJkYmU5MTQgXQ0KDQpU aGUgLT5jbG9zZSwgLT5zdXNwZW5kIGFuZCAtPnJlc3VtZSBob29rcyBhc3N1bWUgcHJlc2VuY2Ug b2YgYSB2YWxpZCBJUlENCmlmIHRoZSBkZXZpY2UgaXMgd2FrZXVwIGNhcGFibGUuICBIb3dldmVy IGl0J3MgZW50aXJlbHkgcG9zc2libGUgdGhhdA0Kd2FrZXVwIHdhcyBlbmFibGVkIGJ5IHNvbWUg b3RoZXIgZW50aXR5IGJlc2lkZXMgdGhpcyBkcml2ZXIgYW5kIGluIHRoaXMNCmNhc2UgdGhlIHVz ZXIgd2lsbCBnZXQgYSBXQVJOIHNwbGF0IGlmIG5vIHZhbGlkIElSUSB3YXMgZm91bmQuICBBdm9p ZCBieQ0KY2hlY2tpbmcgaWYgdGhlIElSUSBpcyB2YWxpZCwgaS5lLiA+IDAuDQoNCkNhc2UgaW4g cG9pbnQ6ICBPbiByZWNlbnQgTWFjQm9vayBQcm9zLCB0aGUgQmx1ZXRvb3RoIGRldmljZSBsYWNr cyBhbg0KSVJRIChiZWNhdXNlIGhvc3Qgd2FrZXVwIGlzIGhhbmRsZWQgYnkgdGhlIFNNQywgaW5k ZXBlbmRlbnRseSBvZiB0aGUNCm9wZXJhdGluZyBzeXN0ZW0pLCBidXQgaXQgZG9lcyBwb3NzZXNz IGEgX1BSVyBtZXRob2QgKHdoaWNoIHNwZWNpZmllcw0KdGhlIFNNQydzIEdQRSBhcyB3YWtlIGV2 ZW50KS4gIFRoZSBBQ1BJIGNvcmUgdGhlcmVmb3JlIGF1d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