USB: serial: sierra: fix potential deadlock at close
The portdata spinlock can be taken in interrupt context (via sierra_outdat_callback()). Disable interrupts when taking the portdata spinlock when discarding deferred URBs during close to prevent a possible deadlock. Fixes: 014333f7 ("USB: sierra: fix urb and memory leak on disconnect") Cc: stable <stable@vger.kernel.org> Signed-off-by: NJohn Ogness <john.ogness@linutronix.de> Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de> [ johan: amend commit message and add fixes and stable tags ] Signed-off-by: NJohan Hovold <johan@kernel.org>
Showing
想要评论请 注册 或 登录