summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin/task-analyzer-record
diff options
context:
space:
mode:
authorMurad Masimov <m.masimov@mt-integration.ru>2025-01-13 13:51:31 +0300
committerHans Verkuil <hverkuil@xs4all.nl>2025-02-13 12:12:30 +0100
commit549f6d348167fb2f7800ed7c8d4bce9630c74498 (patch)
treed64743389d392fda638a1d072efac2b3830aedf1 /tools/perf/scripts/python/bin/task-analyzer-record
parentf656cfbc7a293a039d6a0c7100e1c846845148c1 (diff)
downloadlinux-549f6d348167fb2f7800ed7c8d4bce9630c74498.tar.gz
linux-549f6d348167fb2f7800ed7c8d4bce9630c74498.zip
media: streamzap: prevent processing IR data on URB failure
If streamzap_callback() receives an urb with any non-critical error status, i.e. any error code other than -ECONNRESET, -ENOENT or -ESHUTDOWN, it will try to process IR data, ignoring a possible transfer failure. Make streamzap_callback() process IR data only when urb->status is 0. Move processing logic to a separate function to make code cleaner and more similar to the URB completion handlers in other RC drivers. Found by Linux Verification Center (linuxtesting.org) with Syzkaller. Fixes: 19770693c354 ("V4L/DVB: staging/lirc: add lirc_streamzap driver") Cc: stable@vger.kernel.org Signed-off-by: Murad Masimov <m.masimov@mt-integration.ru> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python/bin/task-analyzer-record')
0 files changed, 0 insertions, 0 deletions