linux-stable/drivers/media
Laurent Pinchart ceecb1bcaf media: uvcvideo: Fix menu count handling for userspace XU mappings
commit 6d00f4ec12 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-23 17:32:53 +02:00
..
cec media: cec: i2c: ch7322: also select REGMAP 2023-07-19 16:36:41 +02:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-07-19 16:36:28 +02:00
dvb-core Revert "media: dvb-core: Fix use-after-free on race condition at dvb_frontend" 2023-06-14 23:16:29 +01:00
dvb-frontends media: mn88443x: fix !CONFIG_OF error by drop of_match_ptr from ID table 2023-05-14 06:30:16 +01:00
firewire
i2c media: tc358746: Address compiler warnings 2023-08-03 10:25:48 +02:00
mc
mmc
pci media: netup_unidvb: fix irq init by register it at the end of probe 2023-05-14 06:30:13 +01:00
platform media: mtk-jpeg: Set platform driver data earlier 2023-08-23 17:32:37 +02:00
radio USB / Thunderbolt changes for 6.4-rc1 2023-04-27 11:42:11 -07:00
rc Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
spi
test-drivers
tuners
usb media: uvcvideo: Fix menu count handling for userspace XU mappings 2023-08-23 17:32:53 +02:00
v4l2-core media: v4l2-mc: Drop subdev check in v4l2_create_fwnode_links_to_pad() 2023-06-02 18:45:24 +01:00
Kconfig
Makefile