OSDN Git Service

tun: add a missing rcu_read_unlock() in error path
authorEric Dumazet <edumazet@google.com>
Sat, 16 Mar 2019 20:09:53 +0000 (13:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 Mar 2019 20:16:37 +0000 (13:16 -0700)
commit9180bb4f046064dfa4541488102703b402bb04e1
tree8f5cd0f61fe38104ecb70f84ac3a63d6f9f4559b
parent0aedadcf6b4863a0d6eaad05a26425cc52944027
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: 4477138fa0ae ("tun: properly test for IFF_UP")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c