mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
cls_api: Convert to idr_alloc_u32
Use the new helper. Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
This commit is contained in:
parent
339913a8be
commit
9ce75499ac
1 changed files with 2 additions and 2 deletions
|
@ -381,8 +381,8 @@ static int tcf_block_insert(struct tcf_block *block, struct net *net,
|
|||
struct tcf_net *tn = net_generic(net, tcf_net_id);
|
||||
int err;
|
||||
|
||||
err = idr_alloc_ext(&tn->idr, block, NULL, block_index,
|
||||
block_index + 1, GFP_KERNEL);
|
||||
err = idr_alloc_u32(&tn->idr, block, &block_index, block_index,
|
||||
GFP_KERNEL);
|
||||
if (err)
|
||||
return err;
|
||||
block->index = block_index;
|
||||
|
|
Loading…
Reference in a new issue