Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752969AbdCIMVz (ORCPT ); Thu, 9 Mar 2017 07:21:55 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:43520 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932283AbdCIMVf (ORCPT ); Thu, 9 Mar 2017 07:21:35 -0500 X-AuditID: b6c32a58-f79f16d00000132c-64-58c1414a61a5 MIME-version: 1.0 Subject: Re: Subject: [PATCH v4] 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: "gregkh@linuxfoundation.org" Cc: Alan Stern , "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: 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: <20170309113425epcms5p783be90da82c183653eafed97413469c4@epcms5p7> Date: Thu, 09 Mar 2017 11:34:25 +0000 X-CMS-MailID: 20170309113425epcms5p783be90da82c183653eafed97413469c4 Content-type: multipart/related; boundary="----=_Part_1974_1189858836.1489059265800" X-MTR: 20170309113425epcms5p783be90da82c183653eafed97413469c4 X-EPHeader: Mail X-ConfirmMail: Y,confirm CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA02Sd0xTURTGc7mPx0N95lKGRxypL3FBKG1toag1TkJUEqKJqXXgC9xQlLak r3UbUZylGqvEEIUoyHAQMUpRcaDVKNGAJMQV3JE4E/5wb/toG/3vu798537nnBwOK7xsIldo c1KHTSwS2AFMy7XxSSmzp101qT+2ZRja+poZQ+mRJtbw9s57bOhurWQNNfVbsWHPjy52KpvV VtUYlXXw8VeUtbv5OMr6cHpkDmOmky1UzKcOJbXl2fMLbQVGYc783Bm5+jS1JkWTYUgXlDbR So3CzLk5KZmFRYFwQblSLHIFUI4oSULqlMkOu8tJlRa75DQKizQarUqjTldptVqVTr9kolYf sCyjlp+11UzxjoTVFY2WEuSLd6NoDogO3pSfYoI6AbqeNLFuNIBTkDoEd9uvYTfiOJ7EwK9z sTKPJVUIqusfsXKBgihh5/am/uJYkgzfPe8iZc2S8XC+zNfP44gRvPVlWC7G5BuC0rKnbDCN h4rtvaHkYXC2wYdkHU2y4Vlda8gTDz9Lwh6AE9WvQnwk7P/UiMOevhuHUFDHwdYnHSEeA8++ XQhxK7j/fI4KZ3Wf9PY3BKQUgaf7IQo+PAhe3+qJDLrSoe3mp4jg+NnQ26OTMUNGw1FfL5Ix kJng/jJXxpgsgOsXv4f+N8JuX2Uol0BjeyUO99/V6cdB/2DY9eNlxB40+sC//R7476egHgXl Zc+jZAsOrLSpNfUwYo6jBFosWQuopC/WqSTRKrlsBao8u/U06j/HJNM59Ltinh8RDgmD+Ar3 FZMiUlwprbH6EXBYiOMfT7lqUvD54pq11GHPdbiKqORH+sBsXpwYn2cPHLfNmavRpWl02owJ +rR0tUEYwpvVXpOCFIhOuoLSYuoI10Vw0YklaNJ94Yp6y9gxzJal7YmUz9x3vWpx8oUG38ZN tcPXjjvb3KP4HDPLnHmms2bE5kvLP7yzLkx9dYxLaFhXae6Jck1HfoZd9sCIN2y8PCTt9iDP to57H6NbtnUO7Zs1fy9uQVjNv/Gsf/FomLf6MO8Y2Fq3wWlalWxWn9hbs7MjL3Zcr8BIFlGT hB2S+Be30t4HpAMAAA== DLP-Filter: Pass X-CFilter-Loop: Reflected X-Auth-Email: ajay.kaher@samsung.com X-HopCount: 6 X-CMS-RootMailID: 20170307150103epcas2p348320fdfbb176978d084d8f2b7b9a049 X-RootMTR: 20170307150103epcas2p348320fdfbb176978d084d8f2b7b9a049 References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2784 Lines: 40 ------=_Part_1974_1189858836.1489059265800 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" RnJvbSBmZWJlYjEwODg3ZDUwMjZhNDg5NjU4ZmQ5ZTkxMTY1NmU3NjAzOGFjIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQ0KRnJvbTogQWpheSBLYWhlciA8YWpheS5rYWhlckBzYW1zdW5nLmNvbT4N CkRhdGU6IFRodSwgOSBNYXIgMjAxNyAxNjowNzo1NCArMDUzMA0KU3ViamVjdDogW1BBVENIIHY0 XSBVU0I6Q29yZTogQnVnRml4OiBQcm9wZXIgaGFuZGxpbmcgb2YgUmFjZSBDb25kaXRpb24gd2hl biB0d28NCiBVU0IgY2xhc3MgZHJpdmVycyB0cnkgdG8gY2FsbCBpbml0X3VzYl9jbGFzcyBzaW11 bHRhbmVvdXNseQ0KDQpUaGVyZSBpcyByYWNlIGNvbmRpdGlvbiB3aGVuIHR3byBVU0IgY2xhc3Mg ZHJpdmVycyB0cnkgdG8gY2FsbA0KaW5pdF91c2JfY2xhc3MgYXQgdGhlIHNhbWUgdGltZSBhbmQg bGVhZHMgdG8gY3Jhc2guDQpjb2RlIHBhdGg6IHByb2JlLT51c2Jfc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