Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752449AbdCCPYJ (ORCPT ); Fri, 3 Mar 2017 10:24:09 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:56911 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752349AbdCCPXN (ORCPT ); Fri, 3 Mar 2017 10:23:13 -0500 X-AuditID: b6c32a59-f79736d000001328-c7-58b9829e7ea4 MIME-version: 1.0 Subject: FW: FW: RE: Re: FW: RE: Re: Subject: [PATCH v3] USB:Core: BugFix: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously Reply-to: ajay.kaher@samsung.com From: Ajay Kaher To: Alan Stern , "gregkh@linuxfoundation.org" Cc: "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , AMAN DEEP , HEMANSHU SRIVASTAVA X-Priority: 3 X-Content-Kind-Code: NORMAL In-reply-to: <20170302074947epcms5p16d50cace2b286f0cabaec6ac31f2390b@epcms5p1> X-Drm-Type: Y,confirm X-EPLocale: en_US.EUC-KR X-EPWebmail-Msg-Type: personal X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Illegal-Object: Syntax error in X-Sender: address found on vger.kernel.org: X-Sender: =?utf-8?B?7IK87ISx7KCE7J6QG1NSSS1EZWxoaS1TeXN0ZW0g?= ^-Extraneous program text X-Sender-IP: 107.109.226.47 X-Local-Sender: =?UTF-8?B?QWpheSBLYWhlchtTUkktRGVsaGktU3lzdGVtIFMvVyBUZWFtG+yCvOyEsQ==?= =?UTF-8?B?7KCE7J6QG0xlYWQgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QWpheSBLYWhlchtTUkktRGVsaGktU3lzdGVtIFMvVyBUZWFtG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbTGVhZCBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwGxtDMTBJRDAySUQwMjgxMTI=?= Message-id: <20170303144947epcms5p2afa99fe4129042363253bf804e1451cc@epcms5p2> Date: Fri, 03 Mar 2017 14:49:47 +0000 X-CMS-MailID: 20170303144947epcms5p2afa99fe4129042363253bf804e1451cc Content-type: multipart/related; boundary="----=_Part_12222_1230566514.1488552587683" X-MTR: 20170303144947epcms5p2afa99fe4129042363253bf804e1451cc X-EPHeader: Mail X-ConfirmMail: Y,confirm CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA0WSa0hTYRjHeXeOZ8dq8jYvPZjEOtCHaa5tOl2lYWQxKsXqQ2aFnfRtk3Zj Z4vsQ9hFLLNoIV3somUamLWITF2FtOhuUzAK6YKSUlpiZVZmWbvSt//z4/9ceVhK6mTi2RKz ndjMvJFjptE378kTk8/tbc9X/nbKtR2jN2jtvnoXox3u+kRpe9xnGO2FxnJKe3Sym8lidB1n m8W6029+It2RG01IN3Z9Th5dQDIMhC8mNhkxF1mKS8z6TG7VusJlhZo0pSpZtVCbzsnMvIlk ctmr85JXlBh9zTnZDt7o8KE8XhC4BUsybBaHncgMFsGeyW1UqdQKlTJdoVarFamazYvUGp9l CzFcdS22fpq/c+BKN1OGupIqUSQLOBVab39EQR0H3W9dTCWaxkpxA4IW7wFfwLISPBP+tEX7 eTRuQeCdusP4E6RYBgcrXLRfR+Mk+FX1McKvGSyH9kMtAR6D9TD48ivyJ1O4C0GDp5oJdpPA yYpBOqhnQ+ullsAUkTgXGt6dD3li4XdZ2ANw+fz7EJ8Dx8ebqbBn9EFtaIMYKH/7LMRnQt/E rRA3QeXf7+Jwr56rTso/EOB9CKp6elEwqELw4cmriKArHToejov8WoJz4OWgO1CJxvPAOxm+ VzaMlN8LnIjC6+FLT0IQZ8L9ifrQoBiaH52hwgt0ez0BTeEoODw5IDqK5tX8P3DN/0I1AdNc qD7ULw5iObjcC+oQ3YTiiFUw6YmgsWoUAm8SHGa9oshiuo4C75i4oQ09P7XWgzCLuBmSrLL2 fGkEv0MoNXkQsBQXIykv9SFJMV+6i9gshTaHkQgepPGt5qTiY4ssvuc22wtVqWmqVPXCFE1a ulLLzZIUKJ35Uqzn7WQ7IVZiC+eJ2Mj4MhSl7Ly1fbpILB0Zqs/5tWdwev/m2yN3ljZyG+8+ r1297c3TkmvWlNePdze9kByzDGWfAOvp4SW5syvaxdEfooxtffKErbpVvbHEfeUw3wl1BvX7 i1MFP3cPiFwFuyb2n/Qm/ahmPr84EvUtYc3WuOXHczbt3dKqGHPTs+zyxpWirAMcLRh4VSJl E/h/I3eht6QDAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-Auth-Email: ajay.kaher@samsung.com X-HopCount: 6 X-CMS-RootMailID: 20170301151552epcas5p3ecf8f7dc55323b2ceaff8c8a9b9644c4 X-RootMTR: 20170301151552epcas5p3ecf8f7dc55323b2ceaff8c8a9b9644c4 References: <20170302074947epcms5p16d50cace2b286f0cabaec6ac31f2390b@epcms5p1> <20170302074430epcms5p342df59b8e9a4ecc72f4789ed07fc2f21@epcms5p3> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5663 Lines: 77 ------=_Part_12222_1230566514.1488552587683 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" DQo+IE9uIFRociwgMiBNYXIgMjAxNywgQWpheSBLYWhlciB3cm90ZToNCj4+wqBPbsKgV2VkLMKg McKgTWFywqAyMDE3LMKgQWxhbsKgU3Rlcm7CoHdyb3RlOg0KPj4+wqBPbsKgV2VkLMKgMcKgTWFy wqAyMDE3LMKgQWphecKgS2FoZXLCoHdyb3RlOg0KPj4+PsKgT27CoE1vbizCoDIywqBGZWLCoDIw MTcswqBBamF5wqBLYWhlcsKgd3JvdGU6DQo+Pj4+wqANCj4+Pj4+wqANCj4+Pj4+PsKgQWxhbizC oGFzwqBwZXLCoG15wqB1bmRlcnN0YW5kaW5nwqBJwqBoYXZlwqBzaGlmdGVkwqB0aGXCoGxvY2vC oGZyb20NCj4+Pj4+PsKgcmVsZWFz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