tun: add a missing rcu_read_unlock() in error path
commit6caa2c1036293ef8571f5263b0fb247d81fb19f4
authorEric Dumazet <edumazet@google.com>
Sat, 16 Mar 2019 20:09:53 +0000 (16 13:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:25:11 +0000 (3 06:25 +0200)
tree3accb88806f132d1edc53b77d594f8915d8bb846
parent63a85fb4871a096c3bd5777b9f870b2386f45160
tun: add a missing rcu_read_unlock() in error path

commit 9180bb4f046064dfa4541488102703b402bb04e1 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/tun.c