Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 840af824 authored by Vladislav P's avatar Vladislav P Committed by Gustavo Padovan
Browse files

Bluetooth: Release BTM while sleeping to avoid deadlock

parent 8efdd0cd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);