Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758709AbdCVFRJ (ORCPT ); Wed, 22 Mar 2017 01:17:09 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:36614 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750721AbdCVFRA (ORCPT ); Wed, 22 Mar 2017 01:17:00 -0400 X-AuditID: b6c32a2c-f79b56d0000012f0-66-58d208c9ef35 MIME-version: 1.0 Subject: FW: Re: [PATCH v4] USB: 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: <20170317105637epcms5p2d296f449d5c5712718d6efab69948985@epcms5p2> 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: <20170321144954epcms5p242483c08dea0263dc474174c2b663e19@epcms5p2> Date: Tue, 21 Mar 2017 14:49:54 +0000 X-CMS-MailID: 20170321144954epcms5p242483c08dea0263dc474174c2b663e19 Content-type: multipart/related; boundary="----=_Part_712741_1102983671.1490107794214" X-MTR: 20170321144954epcms5p242483c08dea0263dc474174c2b663e19 X-EPHeader: Mail X-ConfirmMail: Y,confirm CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprIJsWRmVeSWpSXmKPExsWy7bCmuu5JjksRBne/S1vsf7+FxaJ58Xo2 i1fn3zBbXN41h81i0bJWZosJvy+wObB57J+7ht1j9t0fjB59W1YxenzeJBfAEpVqk5GamJJa pJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQO0XEmhLDGnFCgUkFhc rKRvZ1OUX1qSqpCRX1xiqxRtaGikZ2hgrmdkZKRnYhprZWQKVJKQmnFjllrBOZGKxXc+MTUw Nop0MXJwSAiYSDz8odXFyAlkiklcuLeerYuRi0NIYCmjRM/s/+wgNbwCghJ/dwiD1AgLdDJK 3HrNDGILCShIdLavZ4GIa0v86nnNCmKzCWhK7OzeChYXEbCVmLismxlkJrPAT0aJ5u77bBDL eCVmtD9lgbClJbYv38oIYnMK+EmseXGBHSIuKvGnAaZGQmL1wudQvXIS076uYYapeX9sPiOE LSLReu8sVFxQ4sHP3VDxXImu/9/YYXZdXjcR7CAJgWagJy/fZIRwehglXpy6zQpRZS6x//hX JhCbV8BX4tiKNrDNLAKqEjPuP4Oa5CJxZ+8RsDizQITE162voDbbSuw+0Qo1R0BizYk5zDAf XDh3iBmink+i9/cTpgmMqrMQATwLySQIW1FiSvdDdpASZmCgrt+lv4CRZRWjWGpBcW56arFp gaFecWJucWleul5yfu4mRnBy1NLZwXhvgfchRgEORiUe3hXTLkYIsSaWFVfmHmKU4GBWEuHt vQMU4k1JrKxKLcqPLyrNSS0+xGgK9NxEZinR5Hxg4s4riTc0MTM0MbI0NjUzN7BQEueNMpgY ISSQnliSmp2aWpBaBNPHxMEp1cCo22WcWOZudSNy8YrgVzbP+nLYf2wI91js4Huhs4Hh64uk qe+VuS6zTZQN/5K979Hx80+ncjtYbq5w0neUT3B8e2fifL63kz7PvbufU/OB3SE5j1kajv4r WGfHfSrePqPwYtZJtVtqx+xsF+tc/vPRtoLFn7U65QMDw8VHgdk3Dl5a+ClsjvMsJZbijERD Leai4kQAm3GhRqQDAAA= 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: <20170317105637epcms5p2d296f449d5c5712718d6efab69948985@epcms5p2> <20170309121041.GB13054@kroah.com> <20170309113425epcms5p783be90da82c183653eafed97413469c4@epcms5p7> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2601 Lines: 37 ------=_Part_712741_1102983671.1490107794214 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" DQpHcmVnLCBob3BlIHlvdSBoYWQgbm90IGZhY2VkIGFueSBpc3N1ZSAodGFiIGNvbnZlcnRlZCB0 byBzcGFjZXMpIHdpdGggdGhpcyBwYXRjaC4NCkluIGNhc2Ugc3RpbGwgZmFjaW5nIGFueSBpc3N1 ZSBwbGVhc2UgbGV0IG1lIGtub3cuDQoNCj4gVGhlcmUgaXMgcmFjZSBjb25kaXRpb24gd2hlbiB0 d28gVVNCIGNsYXNzIGRyaXZlcnMgdHJ5IHRvIGNhbGwNCj4gaW5pdF91c2JfY2xhc3MgYXQgdGhl IHNhbWUgdGltZSBhbmQgbGVhZHMgdG8gY3Jhc2guDQo+IGNvZGUgcGF0aDogcHJvYmUtPnVzYl9y ZWdpc3Rlcl9kZXYtPmluaXRfdXNiX2NsYXNzDQo+DQo+IFRvIHNvbHZlIHRoaXMsIG11dGV4IGxv Y2tpbm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