Re: [PATCH] usb: gadget: f_fs: don't free buffer prematurely

From: John Stultz
Date: Tue Mar 19 2019 - 19:41:46 EST


On Tue, Mar 19, 2019 at 4:25 PM <fei.yang@xxxxxxxxx> wrote:
>
> From: Fei Yang <fei.yang@xxxxxxxxx>
>
> The following kernel panic happens due to the io_data buffer gets deallocated
> before the async io is completed. Add a check for the case where io_data buffer
> should be deallocated by ffs_user_copy_worker.

Yay! Perfect! I was up late last night chasing this crash, but
couldn't de-thread what the problem was.
So very happy to see this patch!

I'll test it here shortly!

thanks
-john