mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
Merge "ODROID-N2: usb/gadget: validate null pointer of usb device" into odroidn2-4.9.y-android
This commit is contained in:
@@ -843,6 +843,11 @@ int acc_ctrlrequest(struct usb_composite_dev *cdev,
|
||||
w_value, w_index, w_length);
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_ARCH_MESON64_ODROID_COMMON)
|
||||
if (!dev)
|
||||
goto err;
|
||||
#endif
|
||||
|
||||
if (b_requestType == (USB_DIR_OUT | USB_TYPE_VENDOR)) {
|
||||
if (b_request == ACCESSORY_START) {
|
||||
dev->start_requested = 1;
|
||||
|
||||
Reference in New Issue
Block a user