[NET_SCHED]: act_api: fix skb leak in error path The skb is allocated by the function, so it needs to be freed instead of trimmed on overrun.
Coverity #614 Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit 9275d31561bc3268ae997dbff36eed84afe80516 tree 419d6a22bd673583c0b9a105eef9ec73941317f0 parent fa218d330c7f755e03fad775c1f186462caeba63 author Patrick McHardy <[EMAIL PROTECTED]> Mon, 13 Mar 2006 00:04:39 +0100 committer Patrick McHardy <[EMAIL PROTECTED]> Mon, 13 Mar 2006 00:04:39 +0100 net/sched/act_api.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/sched/act_api.c b/net/sched/act_api.c index 792ce59..2ffa11c 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -707,7 +707,7 @@ static int tcf_add_notify(struct tc_acti rtattr_failure: nlmsg_failure: - skb_trim(skb, b - skb->data); + kfree_skb(skb); return -1; } - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html