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

Commit 488b9407 authored by Timur Celik's avatar Timur Celik Committed by Greg Kroah-Hartman
Browse files

tun: fix blocking read



[ Upstream commit 71828b2240692cec0e68b8d867bc00e1745e7fae ]

This patch moves setting of the current state into the loop. Otherwise
the task may end up in a busy wait loop if none of the break conditions
are met.

Signed-off-by: default avatarTimur Celik <mail@timurcelik.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ab04570d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment