X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fsched%2Fact_pedit.c;fp=net%2Fsched%2Fact_pedit.c;h=f257475e0e0c996ba39a333f2f7c4386573ed250;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=1742a68e0122a134a9e4430c5e96a762a3f3061a;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/net/sched/act_pedit.c b/net/sched/act_pedit.c index 1742a68e0..f257475e0 100644 --- a/net/sched/act_pedit.c +++ b/net/sched/act_pedit.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include #include @@ -210,10 +209,9 @@ tcf_pedit_dump(struct sk_buff *skb, struct tc_action *a,int bind, int ref) s = sizeof(*opt) + p->nkeys * sizeof(struct tc_pedit_key); /* netlink spinlocks held above us - must use ATOMIC */ - opt = kmalloc(s, GFP_ATOMIC); + opt = kzalloc(s, GFP_ATOMIC); if (opt == NULL) return -ENOBUFS; - memset(opt, 0, s); memcpy(opt->keys, p->keys, p->nkeys * sizeof(struct tc_pedit_key)); opt->index = p->index;