Searched hist:"29 ce81f9799166563c9548b4ab1614a7db3d9b89" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/media/usb/s2255/ |
H A D | s2255drv.c | diff 29ce81f9799166563c9548b4ab1614a7db3d9b89 Mon Apr 29 10:04:50 CDT 2024 Ricardo Ribalda <ribalda@chromium.org> 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>
|