Explorar o código

Bluetooth: Release BTM while sleeping to avoid deadlock

Signed-off-by: Vladislav P <vladisslav@inbox.ru>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Vladislav P %!s(int64=14) %!d(string=hai) anos
pai
achega
840af824b2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      net/bluetooth/rfcomm/tty.c

+ 2 - 0
net/bluetooth/rfcomm/tty.c

@@ -727,7 +727,9 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp)
 			break;
 		}
 
+		tty_unlock();
 		schedule();
+		tty_lock();
 	}
 	set_current_state(TASK_RUNNING);
 	remove_wait_queue(&dev->wait, &wait);