net/tls: Replace kfree_skb() with consume_skb()
authorVakul Garg <vakul.garg@nxp.com>
Thu, 21 Mar 2019 11:59:57 +0000 (11:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Mar 2019 17:14:26 +0000 (10:14 -0700)
commita88c26f671b0860cc93c654d45f472e43831fb33
treea2e2d157fdfa5e719d69be7b994c90c1644ff90a
parent08e046c8966a872a4fb047aa940b5c991ee5635d
net/tls: Replace kfree_skb() with consume_skb()

To free the skb in normal course of processing, consume_skb() should be
used. Only for failure paths, skb_free() is intended to be used.

https://www.kernel.org/doc/htmldocs/networking/API-consume-skb.html

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c