Message ID | CD6925E8781EFD4D8E11882D20FC406D529834D2@SHSMSX104.ccr.corp.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | fix panic at pwq_activate_delayed_work. | expand |
diff --git a/drivers/usb/gadget/function/f_fs.c b/drivers/usb/gadget/function/f_fs.c index 3ada83d..45ade26 100644 --- a/drivers/usb/gadget/function/f_fs.c +++ b/drivers/usb/gadget/function/f_fs.c @@ -1091,6 +1091,8 @@ static int ffs_aio_cancel(struct kiocb *kiocb) ENTER(); + spin_lock_irq(&ffs->eps_lock); + if (likely(io_data && io_data->ep && io_data->req)) { INIT_WORK(&io_data->cancellation_work, ffs_aio_cancel_worker); queue_work(ffs->io_completion_wq, &io_data->cancellation_work); @@ -1099,6 +1101,8 @@ static int ffs_aio_cancel(struct kiocb *kiocb) value = -EINVAL; } + spin_unlock_irq(&ffs->eps_lock); + return value; }