commit | 689b5a2970b8e09621acb693dcaa762c0330cd1e | [log] [tgz] |
---|---|---|
author | Timur Celik <mail@timurcelik.de> | Sat Feb 23 12:53:13 2019 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Mar 13 14:04:54 2019 -0700 |
tree | 208b7e29042ce071e549f5fd3794761a4a3a82a2 | |
parent | 3b448977879f7b25f5171de3b58755658f92f1ae [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>