]> err.no Git - linux-2.6/blobdiff - net/sched/act_api.c
[PATCH] handle errors returned by platform_get_irq*()
[linux-2.6] / net / sched / act_api.c
index 792ce59940ecbeaadc806b97f13cb6a1b2a811a3..2ffa11c6e8ded50080855fe7250642ebacc8cf2f 100644 (file)
@@ -707,7 +707,7 @@ static int tcf_add_notify(struct tc_action *a, u32 pid, u32 seq, int event,
 
 rtattr_failure:
 nlmsg_failure:
-       skb_trim(skb, b - skb->data);
+       kfree_skb(skb);
        return -1;
 }