usb: adb panic [1/1]
authorhe.he <he.he@amlogic.com>
Tue, 20 Nov 2018 05:57:37 +0000 (13:57 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 12 Dec 2018 03:37:08 +0000 (19:37 -0800)
commited988b87f0c744b5f8912271ea3b24c43cc6db3c
tree4460c20dfbfc44a592327f10e67c21e8dacc67ea
parent81bc3489b97f842b43b29690aa2c6abcab82ab1f
usb: adb panic [1/1]

PD#SWPL-2678

Problem:
adb panic in release_ffs_buffer

Solution:
1.when kzalloc data_ep use GFP_ATOMIC  instead of GFP_KERNEL
and keep spin lock protection.
2.check buffer_temp->data_ep == NULL, return

Test: adb push

Verify:
verified by he he

Change-Id: I3402b17d62b8a0ef4e3185a87729a0c3e87449e9
Signed-off-by: he.he <he.he@amlogic.com>
drivers/usb/gadget/function/f_fs.c