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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2019 04:26:19 +0000 (06:26 +0200)
commite044d21c2999d35c26cc15011e6478e2a9eaee63
treed12c044bd83dcf976f0b8c1e80ae66d7bfff9253
parent6bdb5fdc4787fb621676c5d7380b9351b79cd9f8
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