X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fsched%2Fact_simple.c;h=8daa1ebc7413b971dafde75606af039d52a7e83e;hb=4ce5f24193cef2e26f182ce708e94ba1f5fafc0c;hp=e7851ce92cfea56cef8ba52943cbbba5a1942b68;hpb=76c3bb15d6786a0b8da0ad0090e0c9c3672fc08b;p=karo-tx-linux.git diff --git a/net/sched/act_simple.c b/net/sched/act_simple.c index e7851ce92cfe..8daa1ebc7413 100644 --- a/net/sched/act_simple.c +++ b/net/sched/act_simple.c @@ -124,8 +124,8 @@ static int tcf_simp_init(struct nlattr *nla, struct nlattr *est, if (!pc) { pc = tcf_hash_create(parm->index, est, a, sizeof(*d), bind, &simp_idx_gen, &simp_hash_info); - if (unlikely(!pc)) - return -ENOMEM; + if (IS_ERR(pc)) + return PTR_ERR(pc); d = to_defact(pc); ret = alloc_defdata(d, defdata);