net: core: Specify skb_pad()/skb_put_padto() SKB freeing
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 22 Aug 2017 22:12:14 +0000 (15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Aug 2017 03:33:49 +0000 (20:33 -0700)
commitcd0a137acbb66208368353723f5f1480995cf1c4
treefa01d9b120f8a919f3e2bed10d57ec266f9a9003
parent013dae5dbc07aa521a38f1ca2d32123ec674bd5d
net: core: Specify skb_pad()/skb_put_padto() SKB freeing

Rename skb_pad() into __skb_pad() and make it take a third argument:
free_on_error which controls whether kfree_skb() should be called or
not, skb_pad() directly makes use of it and passes true to preserve its
existing behavior. Do exactly the same thing with __skb_put_padto() and
skb_put_padto().

Suggested-by: David Miller <davem@davemloft.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c