usb: adb panic [1/1]
authorhe.he <he.he@amlogic.com>
Tue, 20 Nov 2018 05:57:37 +0000 (13:57 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Mon, 17 Dec 2018 09:24:13 +0000 (17:24 +0800)
commit57d49e8a7f31740a3c992501be0333bab88eb1e7
treea78eba676a1d520c7153f983b96bc398319a1f1c
parent67c75a672a4ec5cdeb0e9680d94184041221293a
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