net sched actions: Convert to use idr_alloc_u32
authorMatthew Wilcox <mawilcox@microsoft.com>
Tue, 28 Nov 2017 15:28:15 +0000 (10:28 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 6 Feb 2018 21:40:33 +0000 (16:40 -0500)
commit339913a8be8a98fca5c72f5552f0316ff6d5e701
treef9167acbde7ef5aa296cbb7b6839e79911f2933a
parente096f6a762bc54d0e5d44ba8b196e70b58e04367
net sched actions: Convert to use idr_alloc_u32

Use the new helper.  Also untangle the error path, and in so doing
noticed that estimator generator failure would lead to us leaking an
ID.  Fix that bug.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
net/sched/act_api.c