summaryrefslogtreecommitdiff
path: root/net/mptcp/diag.c
diff options
context:
space:
mode:
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>2024-03-14 16:32:21 +0100
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2024-03-25 12:00:44 +0100
commit6e423b75d0492e82fa6f057c615427ebd7ebe76c (patch)
tree87c3045393a3565f10c94355897103b1cf04b454 /net/mptcp/diag.c
parentf5131d5ce49ef942a3bda5f4a0f6228b1ea40eee (diff)
downloadlwn-6e423b75d0492e82fa6f057c615427ebd7ebe76c.tar.gz
lwn-6e423b75d0492e82fa6f057c615427ebd7ebe76c.zip
media: core: Rework how create_buf index returned value is computed
When REMOVE_BUFS will be introduced holes could created in bufs array. To be able to reuse these unused indices reworking how create->index is set is mandatory. Let __vb2_queue_alloc() decide which first index is correct and forward this to the caller. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com> Acked-by: Mauro Carvalho Chehab <mchehab@kernel.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'net/mptcp/diag.c')
0 files changed, 0 insertions, 0 deletions