diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-25 21:12:32 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 21:13:25 -0800 |
commit | 0e991ec6a0340916d3f29bd5dcb35299069e7226 (patch) | |
tree | f8353915d1100b780e057a52f5be84102454af85 /net/sched/act_mirred.c | |
parent | 4ef8e768335637749af8d83327b174be0ea798a2 (diff) | |
download | kernel_samsung_crespo-0e991ec6a0340916d3f29bd5dcb35299069e7226.zip kernel_samsung_crespo-0e991ec6a0340916d3f29bd5dcb35299069e7226.tar.gz kernel_samsung_crespo-0e991ec6a0340916d3f29bd5dcb35299069e7226.tar.bz2 |
tc: propogate errors from tcf_hash_create
Allow tcf_hash_create to return different errors on estimator failure.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_mirred.c')
-rw-r--r-- | net/sched/act_mirred.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/act_mirred.c b/net/sched/act_mirred.c index 70341c0..b9aaab4 100644 --- a/net/sched/act_mirred.c +++ b/net/sched/act_mirred.c @@ -105,8 +105,8 @@ static int tcf_mirred_init(struct nlattr *nla, struct nlattr *est, return -EINVAL; pc = tcf_hash_create(parm->index, est, a, sizeof(*m), bind, &mirred_idx_gen, &mirred_hash_info); - if (unlikely(!pc)) - return -ENOMEM; + if (IS_ERR(pc)) + return PTR_ERR(pc); ret = ACT_P_CREATED; } else { if (!ovr) { |