]> git.baikalelectronics.ru Git - kernel.git/commit
gtp: remove useless rcu_read_lock()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Fri, 28 Aug 2020 13:30:55 +0000 (15:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2020 19:24:34 +0000 (12:24 -0700)
commit37b5fc250d634b00c7f5acf5682a3d7f1ad1c939
tree6896a2b8fbf92de1a8e41cb71a1f0399fe1b9401
parentf7f49960d6e75c0e6a76354d10b4faf9a7b8d4df
gtp: remove useless rcu_read_lock()

The rtnl lock is taken just the line above, no need to take the rcu also.

Fixes: fcdced5d8fbb ("gtp: fix use-after-free in gtp_encap_destroy()")
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gtp.c