Commit dd139186 authored by Ray Chi's avatar Ray Chi Committed by Greg Kroah-Hartman
Browse files

ANDROID: usb: gadget: fix NULL pointer dereference in android_setup



This is a possibility in android_setup when using cdev leading
to a NULL pointer dereference in spin_lock_irqsave. Using the
spinlock of gadget item to prevent the condition.

Bug: 189800931
Signed-off-by: default avatarRay Chi <raychi@google.com>
Change-Id: Idc4cbcaed7dc6e1e35e8a63de84c1415fb83ef5e
parent 07f65598
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment