commit | 488b940719b708c9fae904bac95d4db832bf05f0 | [log] [tgz] |
---|---|---|
author | Timur Celik <mail@timurcelik.de> | Sat Feb 23 12:53:13 2019 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sun Mar 10 07:17:18 2019 +0100 |
tree | c40a09b80ffd051d6bc00bc1c8894dd5de3abb2b | |
parent | ab04570d82b164daca4917c459c152dfb3839448 [diff] |
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: Timur Celik <mail@timurcelik.de> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>