aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/flamegraph-record
diff options
context:
space:
mode:
authorHans Verkuil <[email protected]>2024-06-20 09:52:26 +0200
committerHans Verkuil <[email protected]>2024-06-24 11:05:07 +0200
commitb178aa6f333b07bda0548d7e45085660a112414d (patch)
tree8f84975966fc634e56193559edede3a38d9209cb /tools/perf/scripts/python/bin/flamegraph-record
parente1bda64a5865113727869fe0303c8d07d004869f (diff)
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 <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/flamegraph-record')
0 files changed, 0 insertions, 0 deletions