On Wed, May 27, 2015 at 11:41:31AM +0100, Rui Miguel Silva wrote: > do not try to set cancel function in synchronous operations in > ffs_epfile_{read,write}_iter. > > With, 70e60d917 gadget/function/f_fs.c: switch to ->{read,write}_iter() > if CONFIG_AIO is disable there is no problem as kiocb_set_cancel_fn > is a nop, with this option enabled it will try to use ctx that is not > allocated for synchronous operations. And for that will dereference a > null at the set cancel function in any synchronous read/write. ACK. And it's -stable fodder for 4.0 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html