Commit 68eef65
committed
media: uvcvideo: Refactor iterators
jira VULN-53466
cve-pre CVE-2024-58002
commit-author Ricardo Ribalda <ribalda@chromium.org>
commit 64627da
Avoid using the iterators after the list_for_each() constructs.
This patch should be a NOP, but makes cocci, happier:
drivers/media/usb/uvc/uvc_ctrl.c:1861:44-50: ERROR: invalid reference to the index variable of the iterator on line 1850
drivers/media/usb/uvc/uvc_ctrl.c:2195:17-23: ERROR: invalid reference to the index variable of the iterator on line 2179
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
(cherry picked from commit 64627da)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent 5acbf59 commit 68eef65
1 file changed
+13
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1692 | 1692 | | |
1693 | 1693 | | |
1694 | 1694 | | |
1695 | | - | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
1696 | 1700 | | |
| 1701 | + | |
1697 | 1702 | | |
1698 | 1703 | | |
1699 | 1704 | | |
1700 | 1705 | | |
1701 | 1706 | | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | 1707 | | |
1706 | 1708 | | |
1707 | 1709 | | |
| |||
2005 | 2007 | | |
2006 | 2008 | | |
2007 | 2009 | | |
2008 | | - | |
| 2010 | + | |
2009 | 2011 | | |
2010 | 2012 | | |
2011 | 2013 | | |
| |||
2015 | 2017 | | |
2016 | 2018 | | |
2017 | 2019 | | |
2018 | | - | |
2019 | | - | |
2020 | | - | |
2021 | | - | |
2022 | | - | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
2023 | 2025 | | |
2024 | 2026 | | |
2025 | 2027 | | |
2026 | 2028 | | |
2027 | | - | |
| 2029 | + | |
2028 | 2030 | | |
2029 | 2031 | | |
2030 | 2032 | | |
| |||
0 commit comments