]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tun: Remove unnecessary BUG_ON check in tun_net_xmit
authorDavid Ahern <dsahern@gmail.com>
Fri, 21 Feb 2020 19:53:09 +0000 (12:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Feb 2020 00:39:21 +0000 (16:39 -0800)
commitfb0b1c60421f2fb8de2f2dfa628c7c1c3f034bcc
treed9012880df5d2f220bc5446bef831620eb5affb4
parent53da93259afe2627b3f82ca964006dc0c9c779ac
tun: Remove unnecessary BUG_ON check in tun_net_xmit

The BUG_ON for NULL tfile is now redundant due to a recently
added null check after the rcu_dereference. Remove the BUG_ON.

Cc: Jason Wang <jasowang@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c