Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2019-05-10 14:13:58 +0200
committerJiri Slaby <jslaby@suse.cz>2019-05-16 08:27:59 +0200
commit7ed3dc1dff61e015f1642ee55a4792a7f254b8e8 (patch)
tree27ff72eec6f5ed48804b2a07a0831b16d8b5c7c9
parent7459ac1cfcab2bba6e698f3a03d2f1db2142be44 (diff)
tun: add a missing rcu_read_unlock() in error path
(networking-stable-19_03_28). suse-commit: a46890bef15991afe25b9bb556a9ee4414b6cb81
-rw-r--r--drivers/net/tun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index b33035266dd8..0712c20fa895 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1353,6 +1353,7 @@ drop:
rcu_read_lock();
if (unlikely(!(tun->dev->flags & IFF_UP))) {
err = -EIO;
+ rcu_read_unlock();
goto drop;
}