X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fsched%2Fact_ipt.c;h=082c520b0def5d85f8ca8dc830d3ec20250cd758;hb=3d14bdad40315b54470cb7812293d14c8af2bf7d;hp=0453d79ebf570d985a702ca73194eda80dceae64;hpb=a8022697811c3f2271df5ec14fa6f518b731b46a;p=linux-2.6-omap-h63xx.git diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 0453d79ebf5..082c520b0de 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c @@ -136,8 +136,8 @@ static int tcf_ipt_init(struct nlattr *nla, struct nlattr *est, if (!pc) { pc = tcf_hash_create(index, est, a, sizeof(*ipt), bind, &ipt_idx_gen, &ipt_hash_info); - if (unlikely(!pc)) - return -ENOMEM; + if (IS_ERR(pc)) + return PTR_ERR(pc); ret = ACT_P_CREATED; } else { if (!ovr) {