Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbdCQLNW (ORCPT ); Fri, 17 Mar 2017 07:13:22 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:52268 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbdCQLNT (ORCPT ); Fri, 17 Mar 2017 07:13:19 -0400 X-AuditID: b6c32a2d-f793d6d0000012b6-ef-58cbc4cb566b MIME-version: 1.0 Subject: 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: <20170309121041.GB13054@kroah.com> 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: <20170317105637epcms5p2d296f449d5c5712718d6efab69948985@epcms5p2> Date: Fri, 17 Mar 2017 10:56:37 +0000 X-CMS-MailID: 20170317105637epcms5p2d296f449d5c5712718d6efab69948985 Content-type: multipart/related; boundary="----=_Part_496212_518128476.1489748197039" X-MTR: 20170317105637epcms5p2d296f449d5c5712718d6efab69948985 X-EPHeader: Mail X-ConfirmMail: Y,confirm CMS-TYPE: 105P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprEJsWRmVeSWpSXmKPExsWy7bCmpu7pI6cjDNo2m1vsf7+FxaJ58Xo2 i1fn3zBbXN41h81i0bJWZosJvy+wObB57J+7ht1j9t0fjB59W1YxenzeJBfAEpVqk5GamJJa pJCal5yfkpmXbqvkHRzvHG9qZmCoa2hpYa6kkJeYm2qr5OIToOuWmQO0XEmhLDGnFCgUkFhc rKRvZ1OUX1qSqpCRX1xiqxRtaGikZ2hgrmdkZKRnYhprZWQKVJKQmrH+wyWmgm9CFT83vWdt YFwv1MXIySEhYCKx+ekCNghbTOLCvfVANheHkMBSRolPe9YydzFycPAKCEr83SEMUiMs0Moo ceCsL4gtJKAg0dm+ngUiri3xq+c1K4jNJqApsbN7K1hcRMBWYuKybmaQmcwCPxklmrvvQy3j lZjR/pQFwpaW2L58KyOIzSmgL7G4fwk7RFxU4k8DTI2ExOqFz6F65SSmfV3DDFPz/th8Rghb RKL13lmouKDEg5+7oeK5El3/v7HD7Lq8biLYQRICzYwSPZdvMkI4PYwSL07dZoWoMpfYf/wr E8T3vhI3XuiDhFkEVCX+Xt7OBFHiIjGhrxPMZhYIl/i+YjZUq63E0uZnUIsFJNacmMMM88CF c4eYIer5JHp/P2GawKg6CxG+s5BMgrAVJaZ0P2QHKWEGhun6XfoLGFlWMYqlFhTnpqcWmxYY 6RUn5haX5qXrJefnbmIEp0ct3R2MXxZ4H2IU4GBU4uGVaD8dIcSaWFZcmXuIUYKDWUmEN3IO UIg3JbGyKrUoP76oNCe1+BCjKdBzE5mlRJPzgak7ryTe0MTM0MTI0tjUzNzAQkmcN8pgYoSQ QHpiSWp2ampBahFMHxMHp1QDo9I5t4UX/048L/9sSX3zUv+a7/bKy0WuBxY/0ei8+8/6qEBM 7NwHzNazuzLNRBeJnlNT1nK7LnL7ReiN6sA9i88t5Jq/LfO7wcoeofN67cE3tt1Zus50GueK R19n9P7blr+RQfMM79XC4MZN1j2N80+cYliorKjV/n1D642kt78j/L7ni9hO8lRiKc5INNRi LipOBABv4j6GpQMAAA== 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: <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: 2388 Lines: 34 ------=_Part_496212_518128476.1489748197039 Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" VGhlcmUgaXMgcmFjZSBjb25kaXRpb24gd2hlbiB0d28gVVNCIGNsYXNzIGRyaXZlcnMgdHJ5IHRv IGNhbGwNCmluaXRfdXNiX2NsYXNzIGF0IHRoZSBzYW1lIHRpbWUgYW5kIGxlYWRzIHRvIGNyYXNo Lg0KY29kZSBwYXRoOiBwcm9iZS0+dXNiX3JlZ2lzdGVyX2Rldi0+aW5pdF91c2JfY2xhc3MNCg0K VG8gc29sdmUgdGhpcywgbXV0ZXggbG9ja2luZyBoYXMgYmVlbiBhZGRlZCBpbiBpbml0X3VzYl9j bGFzcygpIGFuZCANCmRlc3Ryb3lfdXNiX2NsYXNzKCkuDQoNCkFzIHBvaW50ZWQgYnkgQWxhbiwg cmVtb3ZlZCAiaWYgKHVzYl9jbGFzcykiIHRlc3QgZnJvbSBkZXN0cm95X3VzYl9jbGFzcygpDQpi ZWNhdXNlIHVzYl9jbGFzcyBjYW4gbmV2ZXIgYmUgTlVMTCB0aGVyZS4NCg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zcyk7DQor CW11dGV4X2xvY2soJmluaXRfdXNiX2NsYXNzX211dGV4KTsNCisJa3JlZl9wdXQoJnVzYl9jbGFz cy0+a3JlZiwgcmVsZWFzZV91c2JfY2xhc3MpOw0KKwltdXRleF91bmxvY2soJmluaXRfdXNiX2Ns YXNzX211dGV4KTsNCiB9DQogDQogaW50IHVzYl9tYWpvcl9pbml0KHZvaWQpDQpAQCAtMTcxLDcg KzE3MywxMCBAQCBpbnQgdXNiX3JlZ2lzdGVyX2RldihzdHJ1Y3QgdXNiX2ludGVyZmFjZSAqaW50 ZiwNCiAJaWYgKGludGYtPm1pbm9yID49IDApDQogCQlyZXR1cm4gLUVBRERSSU5VU0U7DQogDQor CW11dGV4X2xvY2soJmluaXRfdXNiX2NsYXNzX211dGV4KTsNCiAJcmV0dmFsID0gaW5pdF91c2Jf Y2xhc3MoKTsNCisJbXV0ZXhfdW5sb2NrKCZpbml0X3VzYl9jbGFzc19tdXRleCk7DQorDQogCWlm IChyZXR2YWwpDQogCQlyZXR1cm4gcmV0dmFsOw0KIA0KLS0gDQoxLjcuOS41DQo= ------=_Part_496212_518128476.1489748197039--