Commit 9180bb4f authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

tun: add a missing rcu_read_unlock() in error path

In my latest patch I missed one rcu_read_unlock(), in case
device is down.

Fixes: 4477138f

 ("tun: properly test for IFF_UP")
Signed-off-by: default avatarEric Dumazet <>
Reported-by: default avatarsyzbot <>
Signed-off-by: default avatarDavid S. Miller <>
parent 0aedadcf
......@@ -1960,6 +1960,7 @@ drop:
if (unlikely(!(tun->dev->flags & IFF_UP))) {
err = -EIO;
goto drop;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment