netpoll: accept NULL np argument in netpoll_send_skb()
authorEric Dumazet <edumazet@google.com>
Thu, 7 May 2020 16:32:21 +0000 (09:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 May 2020 01:11:07 +0000 (18:11 -0700)
commitf78ed2204db9fc35b545d693865bddbe0149aa1f
tree547a43f4bee21b4880397429cca2a02ab85f397c
parent1ddabdfaf70c202b88925edd74c66f4707dbd92e
netpoll: accept NULL np argument in netpoll_send_skb()

netpoll_send_skb() callers seem to leak skb if
the np pointer is NULL. While this should not happen, we
can make the code more robust.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
include/linux/if_team.h
include/net/bonding.h
net/8021q/vlan_dev.c
net/bridge/br_private.h
net/core/netpoll.c
net/dsa/slave.c