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>
Showing
- drivers/net/macvlan.c 2 additions, 3 deletionsdrivers/net/macvlan.c
- include/linux/if_team.h 1 addition, 4 deletionsinclude/linux/if_team.h
- include/net/bonding.h 1 addition, 4 deletionsinclude/net/bonding.h
- net/8021q/vlan_dev.c 2 additions, 3 deletionsnet/8021q/vlan_dev.c
- net/bridge/br_private.h 1 addition, 4 deletionsnet/bridge/br_private.h
- net/core/netpoll.c 8 additions, 3 deletionsnet/core/netpoll.c
- net/dsa/slave.c 2 additions, 3 deletionsnet/dsa/slave.c
Loading
Please register or sign in to comment