angler-fishThe Vulnerability History Project

staging: usbip: use interrupt safe spinlock to avoid potential deadlock.

      The function 'usbip_event_add()' may be called in interrupt context on
the stub side:
'stub_complete'->'stub_enqueue_ret_unlink'->'usbip_event_add'.
In this function it tries to get the lock 'ud->lock', so we should
disable irq when we get this lock in process context.

Signed-off-by: Harvey Yang <harvey.huawei.yang@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    
commit dcf14779280215d1765141ce04c675df3e4301c5
+17 -17
+2 -2
+4 -2
expand_less