X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fsched%2Fact_ipt.c;h=082c520b0def5d85f8ca8dc830d3ec20250cd758;hb=2205afa7d13ec716935dfd4b8ff71059ee7aeb0c;hp=0453d79ebf570d985a702ca73194eda80dceae64;hpb=b6283534a3e057f8268ca5448305900f74d12608;p=mv-sheeva.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) {