projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cecd8d8
)
net/ncsi: use kfree_skb() instead of kfree()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 8 Mar 2018 09:36:04 +0000
(12:36 +0300)
committer
David S. Miller
<davem@davemloft.net>
Fri, 9 Mar 2018 02:49:58 +0000
(21:49 -0500)
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>
net/ncsi/ncsi-netlink.c
patch
|
blob
|
history
diff --git
a/net/ncsi/ncsi-netlink.c
b/net/ncsi/ncsi-netlink.c
index
d420166
..
b73239b
100644
(file)
--- 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;
}