udp: Do not copy destructor if one is not present
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 7 May 2018 18:08:52 +0000 (11:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 May 2018 02:30:06 +0000 (22:30 -0400)
commit04d55b257cbb9eb6c722410251d3b7df00835c6c
treefe8117ef2f429d2077c37b65cfc9b425dd43e09f
parent6053d0f189064302420930f9ef9022e24a04946a
udp: Do not copy destructor if one is not present

This patch makes it so that if a destructor is not present we avoid trying
to update the skb socket or any reference counting that would be associated
with the NULL socket and/or descriptor. By doing this we can support
traffic coming from another namespace without any issues.

Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/udp_offload.c