diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-01-04 20:29:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-04 20:29:21 -0500 |
commit | 858eb711ba64f8a001d7003295b8078bcab33b6d (patch) | |
tree | a1279f141a97dfdc83049ef96445042f2e140e32 | |
parent | 914d11647b6d6fe81bdf0c059612ee36282b8cee (diff) |
DCB: fix kfree(skb)
Use kfree_skb instead of kfree for struct sk_buff pointers.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/dcb/dcbnl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/dcb/dcbnl.c b/net/dcb/dcbnl.c index 5dbfe5fdc0d6..8379496de82b 100644 --- a/net/dcb/dcbnl.c +++ b/net/dcb/dcbnl.c | |||
@@ -191,7 +191,7 @@ static int dcbnl_reply(u8 value, u8 event, u8 cmd, u8 attr, u32 pid, | |||
191 | return 0; | 191 | return 0; |
192 | nlmsg_failure: | 192 | nlmsg_failure: |
193 | err: | 193 | err: |
194 | kfree(dcbnl_skb); | 194 | kfree_skb(dcbnl_skb); |
195 | return ret; | 195 | return ret; |
196 | } | 196 | } |
197 | 197 | ||
@@ -272,7 +272,7 @@ static int dcbnl_getpfccfg(struct net_device *netdev, struct nlattr **tb, | |||
272 | return 0; | 272 | return 0; |
273 | nlmsg_failure: | 273 | nlmsg_failure: |
274 | err: | 274 | err: |
275 | kfree(dcbnl_skb); | 275 | kfree_skb(dcbnl_skb); |
276 | err_out: | 276 | err_out: |
277 | return -EINVAL; | 277 | return -EINVAL; |
278 | } | 278 | } |
@@ -314,7 +314,7 @@ static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlattr **tb, | |||
314 | 314 | ||
315 | nlmsg_failure: | 315 | nlmsg_failure: |
316 | err: | 316 | err: |
317 | kfree(dcbnl_skb); | 317 | kfree_skb(dcbnl_skb); |
318 | err_out: | 318 | err_out: |
319 | return -EINVAL; | 319 | return -EINVAL; |
320 | } | 320 | } |
@@ -380,7 +380,7 @@ static int dcbnl_getcap(struct net_device *netdev, struct nlattr **tb, | |||
380 | return 0; | 380 | return 0; |
381 | nlmsg_failure: | 381 | nlmsg_failure: |
382 | err: | 382 | err: |
383 | kfree(dcbnl_skb); | 383 | kfree_skb(dcbnl_skb); |
384 | err_out: | 384 | err_out: |
385 | return -EINVAL; | 385 | return -EINVAL; |
386 | } | 386 | } |
@@ -458,7 +458,7 @@ static int dcbnl_getnumtcs(struct net_device *netdev, struct nlattr **tb, | |||
458 | return 0; | 458 | return 0; |
459 | nlmsg_failure: | 459 | nlmsg_failure: |
460 | err: | 460 | err: |
461 | kfree(dcbnl_skb); | 461 | kfree_skb(dcbnl_skb); |
462 | err_out: | 462 | err_out: |
463 | return ret; | 463 | return ret; |
464 | } | 464 | } |
@@ -687,7 +687,7 @@ err_pg: | |||
687 | nla_nest_cancel(dcbnl_skb, pg_nest); | 687 | nla_nest_cancel(dcbnl_skb, pg_nest); |
688 | nlmsg_failure: | 688 | nlmsg_failure: |
689 | err: | 689 | err: |
690 | kfree(dcbnl_skb); | 690 | kfree_skb(dcbnl_skb); |
691 | err_out: | 691 | err_out: |
692 | ret = -EINVAL; | 692 | ret = -EINVAL; |
693 | return ret; | 693 | return ret; |
@@ -949,7 +949,7 @@ err_bcn: | |||
949 | nla_nest_cancel(dcbnl_skb, bcn_nest); | 949 | nla_nest_cancel(dcbnl_skb, bcn_nest); |
950 | nlmsg_failure: | 950 | nlmsg_failure: |
951 | err: | 951 | err: |
952 | kfree(dcbnl_skb); | 952 | kfree_skb(dcbnl_skb); |
953 | err_out: | 953 | err_out: |
954 | ret = -EINVAL; | 954 | ret = -EINVAL; |
955 | return ret; | 955 | return ret; |