summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAjay Kaher <ajay.kaher@samsung.com>2017-03-28 08:09:32 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-20 14:26:58 +0200
commitde9d2d297ebe4d591efd41902c568e3ef4774c43 (patch)
tree34abcd18dcb21fbd5485204ce69c17184dc0a3df /tools/perf/scripts/python/export-to-postgresql.py
parentfcd9a083cd2283574c46b78f39f0d7a83c3cc7d6 (diff)
USB: Proper handling of Race Condition when two USB class drivers try to call init_usb_class simultaneously
commit 2f86a96be0ccb1302b7eee7855dbee5ce4dc5dfb upstream. There is race condition when two USB class drivers try to call init_usb_class at the same time and leads to crash. code path: probe->usb_register_dev->init_usb_class To solve this, mutex locking has been added in init_usb_class() and destroy_usb_class(). As pointed by Alan, removed "if (usb_class)" test from destroy_usb_class() because usb_class can never be NULL there. Signed-off-by: Ajay Kaher <ajay.kaher@samsung.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions