summaryrefslogtreecommitdiffstats
path: root/net/ncsi
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-03-08 12:36:04 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-08 21:49:58 -0500
commit50db64b090d0f457a3266fe80e2c841eba621b9d (patch)
tree99cf62239b6017e0ba5a64901aa9dcb813729e08 /net/ncsi
parentcecd8d81ac5a7551d70c331b7f4ef7eb2609f336 (diff)
downloadlinux-50db64b090d0f457a3266fe80e2c841eba621b9d.tar.gz
linux-50db64b090d0f457a3266fe80e2c841eba621b9d.tar.bz2
linux-50db64b090d0f457a3266fe80e2c841eba621b9d.zip
net/ncsi: use kfree_skb() instead of kfree()
We're supposed to use kfree_skb() to free these sk_buffs. Fixes: 955dc68cb9b2 ("net/ncsi: Add generic netlink family") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ncsi')
-rw-r--r--net/ncsi/ncsi-netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ncsi/ncsi-netlink.c b/net/ncsi/ncsi-netlink.c
index d4201665a580..b73239b76349 100644
--- a/net/ncsi/ncsi-netlink.c
+++ b/net/ncsi/ncsi-netlink.c
@@ -183,7 +183,7 @@ static int ncsi_pkg_info_nl(struct sk_buff *msg, struct genl_info *info)
hdr = genlmsg_put(skb, info->snd_portid, info->snd_seq,
&ncsi_genl_family, 0, NCSI_CMD_PKG_INFO);
if (!hdr) {
- kfree(skb);
+ kfree_skb(skb);
return -EMSGSIZE;
}
@@ -204,7 +204,7 @@ static int ncsi_pkg_info_nl(struct sk_buff *msg, struct genl_info *info)
err:
genlmsg_cancel(skb, hdr);
- kfree(skb);
+ kfree_skb(skb);
return rc;
}