From 1607c648a268c1f06e39b185950a041e1e2f0416 Mon Sep 17 00:00:00 2001 From: Yue Wang Date: Thu, 8 Mar 2018 18:23:06 +0800 Subject: [PATCH] usb: fix adb aio buffer panic. PD#161764: usb: fix adb aio buffer panic. Change-Id: I32d2c45e28f09489f3f53d2935ab0cd1d7992ed0 Signed-off-by: Yue Wang --- drivers/usb/gadget/function/f_fs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index d32c0f5..cc1fbfc 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -844,7 +844,9 @@ static void ffs_user_copy_worker(struct work_struct *work) if (io_data->read) kfree(io_data->to_free); +#ifndef CONFIG_AMLOGIC_USB kfree(io_data->buf); +#endif kfree(io_data); } -- 2.7.4