]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sched/act_pedit.c
Merge branch 'fix/asoc' into for-linus
[linux-2.6-omap-h63xx.git] / net / sched / act_pedit.c
index d5f4e3404864eb7ffc70c3b7a79d425658e4ec53..96c0ed115e2a07d6b8ff7afe86632e03fb4174b9 100644 (file)
@@ -68,8 +68,8 @@ static int tcf_pedit_init(struct nlattr *nla, struct nlattr *est,
                        return -EINVAL;
                pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind,
                                     &pedit_idx_gen, &pedit_hash_info);
-               if (unlikely(!pc))
-                       return -ENOMEM;
+               if (IS_ERR(pc))
+                   return PTR_ERR(pc);
                p = to_pedit(pc);
                keys = kmalloc(ksize, GFP_KERNEL);
                if (keys == NULL) {