kernel_samsung_a53x/drivers/media/usb
Ricardo Ribalda 0ddc1350bd media: s2255: Use refcount_t instead of atomic_t for num_channels
[ Upstream commit 6cff72f6bcee89228a662435b7c47e21a391c8d0 ]

Use an API that resembles more the actual use of num_channels.

Found by cocci:
drivers/media/usb/s2255/s2255drv.c:2362:5-24: WARNING: atomic_dec_and_test variation before object free at line 2363.
drivers/media/usb/s2255/s2255drv.c:1557:5-24: WARNING: atomic_dec_and_test variation before object free at line 1558.

Link: https://lore.kernel.org/linux-media/20240429-fix-cocci-v3-11-3c4865f5a4b0@chromium.org
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:40 +01:00
..
airspy
as102
au0828
b2c2 media: flexcop-usb: fix sanity check of bNumEndpoints 2024-11-19 12:27:06 +01:00
cpia2
cx231xx media: cx231xx: fix a memleak in cx231xx_init_isoc 2024-11-18 12:12:40 +01:00
dvb-usb media: dw2102: Don't translate i2c read into write 2024-11-19 14:19:40 +01:00
dvb-usb-v2
em28xx media: em28xx: annotate unchecked call to media_device_register() 2024-11-19 08:44:51 +01:00
go7007 media: go7007: fix a memleak in go7007_load_encoder 2024-11-19 08:44:55 +01:00
gspca
hackrf
hdpvr
msi2500
pvrusb2 media: pvrusb2: fix uaf in pvr2_context_set_notify 2024-11-19 08:44:55 +01:00
pwc
s2255 media: s2255: Use refcount_t instead of atomic_t for num_channels 2024-11-19 14:19:40 +01:00
siano
stk1160 media: stk1160: fix bounds checking in stk1160_copy_video() 2024-11-19 12:27:06 +01:00
stkwebcam
tm6000
ttusb-budget
ttusb-dec
usbtv
uvc
zr364xx
Kconfig
Makefile