# Re: \[PATCH\] hid: usbhid: fix possible deadlock in \_\_usbhid\_submit\_report

- List: linux-input
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-input/2012/04/8919313/t

## Re: \[PATCH\] hid: usbhid: fix possible deadlock in \_\_usbhid\_submit\_report

- From: Ming Lei \<hidden\>
- Date: 2012-04-20 13:30:41 
- Message: https://ratatoskr.run/linux-input/2012/04/8919313.md

```text
On Fri, Apr 20, 2012 at 6:45 PM, Oliver Neukum [ref] wrote:

> To be blunt, I'd prefer a guarantee that allows usb_unlink_urb() to be
> called with spinlocks held.

It is allowed to be called with spinlocks held, but the same lock is not
allowed to be acquired in complete handler.

I understand you mean URB complete handler should be guaranteed
to be run only in IRQ context and can't be called by usb_unlink_urb,
don't I?

If yes, many hc drivers are still involved to be modified.

thanks,
--
Ming Lei
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
