diff --git a/net/sched/act_api.c b/net/sched/act_api.c index c029ffd491c1..0b4deb33bdf7 100644 --- a/net/sched/act_api.c +++ b/net/sched/act_api.c @@ -569,7 +569,6 @@ int tcf_idr_check_alloc(struct tc_action_net *tn, u32 *index, u32 max; if (*index) { -again: rcu_read_lock(); p = idr_find(&idrinfo->action_idr, *index); @@ -578,7 +577,7 @@ again: * index but did not assign the pointer yet. */ rcu_read_unlock(); - goto again; + return -EAGAIN; } if (!p) {