diff options
| author | Ingo Molnar <mingo@kernel.org> | 2022-09-21 09:58:02 +0200 | 
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2022-09-21 09:58:02 +0200 | 
| commit | 74656d03ac36fabb16b9df5221cf398ee3a9ca08 (patch) | |
| tree | 0600e619ac817e2c016c148810814f55280316cc /include/net/fq_impl.h | |
| parent | 0d97db026509c1a13f732b22670ab1f0ac9d8d87 (diff) | |
| parent | 521a547ced6477c54b4b0cc206000406c221b4d6 (diff) | |
Merge tag 'v6.0-rc6' into locking/core, to refresh the branch
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/net/fq_impl.h')
| -rw-r--r-- | include/net/fq_impl.h | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/include/net/fq_impl.h b/include/net/fq_impl.h index a5f67a2c0c73..524b510f1c68 100644 --- a/include/net/fq_impl.h +++ b/include/net/fq_impl.h @@ -358,8 +358,7 @@ static int fq_init(struct fq *fq, int flows_cnt)  	if (!fq->flows)  		return -ENOMEM; -	fq->flows_bitmap = kcalloc(BITS_TO_LONGS(fq->flows_cnt), sizeof(long), -				   GFP_KERNEL); +	fq->flows_bitmap = bitmap_zalloc(fq->flows_cnt, GFP_KERNEL);  	if (!fq->flows_bitmap) {  		kvfree(fq->flows);  		fq->flows = NULL; @@ -383,7 +382,7 @@ static void fq_reset(struct fq *fq,  	kvfree(fq->flows);  	fq->flows = NULL; -	kfree(fq->flows_bitmap); +	bitmap_free(fq->flows_bitmap);  	fq->flows_bitmap = NULL;  }  | 
