linux/drivers/media
Hans Verkuil b178aa6f33 media: b2c2: flexcop-usb: fix flexcop_usb_memory_req
smatch generated this warning:

drivers/media/usb/b2c2/flexcop-usb.c:199 flexcop_usb_memory_req() warn: iterator 'i' not incremented

and indeed the function is not using i or updating buf.

The reason this always worked is that this function is called to write just
6 bytes (a MAC address) to the USB device, and so in practice there is only
a single chunk written. If we ever would need to write more than one chunk,
this function would fail since each chunk would read from or write to the
same buf address.

Rewrite the function to properly handle this.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2024-06-24 11:05:07 +02:00
..
cec Mainly singleton patches, documented in their respective changelogs. 2024-05-19 14:02:03 -07:00
common media: siano: Use flex arrays for sms_firmware 2024-05-31 13:51:16 +02:00
dvb-core media: dvbdev: Initialize sbuf 2024-04-08 13:48:19 +02:00
dvb-frontends media: dvb-frontend/mxl5xx: Refactor struct MBIN_FILE_T and MBIN_SEGMENT_T 2024-06-15 10:49:21 +02:00
firewire media: firewire: firedtv-avc.c: replace BUG with proper, error return 2023-08-10 07:58:37 +02:00
i2c media: i2c: ov5647: replacing of_node_put with __free(device_node) 2024-06-15 11:16:40 +02:00
mc media: mc: mark the media devnode as registered from the, start 2024-04-22 11:41:04 +02:00
mmc media: mmc: siano: simplify module initialization 2024-04-08 13:48:19 +02:00
pci media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
platform media: verisilicon : Use exported tables from v4l2-jpeg for hantro codec 2024-06-24 11:05:07 +02:00
radio media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
rc media: Convert from tasklet to BH workqueue 2024-06-21 08:57:09 +02:00
spi media: gs1662: remove unused struct 'gs_reg_fmt_custom' 2024-05-31 13:51:16 +02:00
test-drivers media: v4l2: Add mem2mem helpers for REMOVE_BUFS ioctl 2024-03-25 12:00:44 +01:00
tuners media: xc2028: avoid use-after-free in load_firmware_cb() 2024-06-21 08:57:09 +02:00
usb media: b2c2: flexcop-usb: fix flexcop_usb_memory_req 2024-06-24 11:05:07 +02:00
v4l2-core media: v4l2-jpeg: Export reference quantization and huffman tables 2024-06-24 11:05:06 +02: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