usb: gadget: f_fs: Prevent panic due to failure of huge size buffer allocation
The f_fs daemons usually use large size buffer for increasing transfer
performance, but it can cause memory allocation failure in case of
that buddy space is fragmented. Since this, instead of just returning
error in this case, give the chance to retry to allocate memory with
a half length in order to prevent daemon crash due to failure of
buffer allocation.
Change-Id: I4df1987a6f07e558772dcc5f6f020cc550fb1b13
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
Conflicts:
drivers/usb/gadget/function/f_fs.c
Signed-off-by: Hoegeun Kwon <hoegeun.kwon@samsung.com>