Commit c110f7e7 authored by Ronak Vijay Raheja's avatar Ronak Vijay Raheja Committed by Lecopzer Chen
Browse files

ANDROID: usb: gadget: Resolve NULL pointer dereference in composite_disconnect



There is a race possibility in android_disconnect and
configfs_composite_unbind while using cdev leading to a NULL pointer
dereference in composite_disconnect. Combine android_disconnect with
configfs_composite_disconnect and remove the android_disconnect function.
configfs_composite_disconnect already has a gi->spinlock in place to
prevent the race condition.

Bug: 177038050
(cherry picked from commit 36cfd6f8)
Change-Id: Idfdebaf69f3aa68d90b55bffd7c2e04410c5a47f
Signed-off-by: default avatarRonak Vijay Raheja <rraheja@codeaurora.org>
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent fd5760e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment