linux/drivers/media
Laurent Pinchart 6d00f4ec12 media: uvcvideo: Fix menu count handling for userspace XU mappings
When commit 716c330433 ("media: uvcvideo: Use standard names for
menus") reworked the handling of menu controls, it inadvertently
replaced a GENMASK(n - 1, 0) with a BIT_MASK(n). The latter isn't
equivalent to the former, which broke adding XU mappings from userspace.
Fix it.

Link: https://lore.kernel.org/linux-media/468a36ec-c3ac-cb47-e12f-5906239ae3cd@spahan.ch/

Cc: stable@vger.kernel.org
Reported-by: Poncho <poncho@spahan.ch>
Fixes: 716c330433 ("media: uvcvideo: Use standard names for menus")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-07-28 10:20:10 +02:00
..
cec media: pulse8-cec: handle possible ping error 2023-07-14 09:14:09 +02:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
dvb-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
dvb-frontends media: dvb: mb86a20s: get rid of a clang-15 warning 2023-06-28 15:06:16 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: tc358746: Address compiler warnings 2023-07-14 09:14:09 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: pci: cx23885: fix error handling for cx23885 ATSC boards 2023-07-14 09:14:09 +02:00
platform media: mtk-jpeg: Set platform driver data earlier 2023-07-28 10:19:11 +02:00
radio media: wl128x: fix a clang warning 2023-06-29 09:56:13 +02:00
rc media: add HAS_IOPORT dependencies 2023-06-28 11:09:25 +02:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tuners media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
usb media: uvcvideo: Fix menu count handling for userspace XU mappings 2023-07-28 10:20:10 +02:00
v4l2-core media updates for v6.5-rc1 2023-07-05 10:42:32 -07:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00