Loading net/sched/cls_api.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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); struct tcf_net *tn = net_generic(net, tcf_net_id); int err; int err; err = idr_alloc_ext(&tn->idr, block, NULL, block_index, err = idr_alloc_u32(&tn->idr, block, &block_index, block_index, block_index + 1, GFP_KERNEL); GFP_KERNEL); if (err) if (err) return err; return err; block->index = block_index; block->index = block_index; Loading Loading
net/sched/cls_api.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -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); struct tcf_net *tn = net_generic(net, tcf_net_id); int err; int err; err = idr_alloc_ext(&tn->idr, block, NULL, block_index, err = idr_alloc_u32(&tn->idr, block, &block_index, block_index, block_index + 1, GFP_KERNEL); GFP_KERNEL); if (err) if (err) return err; return err; block->index = block_index; block->index = block_index; Loading