[NET_SCHED]: act_api: fix skb leak in error path
authorPatrick McHardy <kaber@trash.net>
Mon, 13 Mar 2006 04:33:22 +0000 (20:33 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 13 Mar 2006 04:39:36 +0000 (20:39 -0800)
commitf6e57464df7ba0e91a23b0854adb56852dcd58a7
tree9dfee36ee4e5150a3af876b44bca7516554aa5ec
parent406dbfc9ae0e6b7eb4da4a52c0a6556a0d7e6a2f
[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 <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_api.c