diff options
author | Abhishek Tamboli <abhishektamboli9@gmail.com> | 2024-08-15 15:52:02 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-07 10:06:37 +0200 |
commit | 72a68d2bede3284b95ee93a5ab3a81758bba95b0 (patch) | |
tree | c4ea53edf8ae05a9e2cb043fe7cb2b69375ee8d9 /mm/mmu_notifier.c | |
parent | 367a281315ecfafef3131bad60804e0ec8af22b6 (diff) | |
download | linux-72a68d2bede3284b95ee93a5ab3a81758bba95b0.tar.gz linux-72a68d2bede3284b95ee93a5ab3a81758bba95b0.tar.bz2 linux-72a68d2bede3284b95ee93a5ab3a81758bba95b0.zip |
usb: gadget: uvc: Fix ERR_PTR dereference in uvc_v4l2.c
commit a7bb96b18864225a694e3887ac2733159489e4b0 upstream.
Fix potential dereferencing of ERR_PTR() in find_format_by_pix()
and uvc_v4l2_enum_format().
Fix the following smatch errors:
drivers/usb/gadget/function/uvc_v4l2.c:124 find_format_by_pix()
error: 'fmtdesc' dereferencing possible ERR_PTR()
drivers/usb/gadget/function/uvc_v4l2.c:392 uvc_v4l2_enum_format()
error: 'fmtdesc' dereferencing possible ERR_PTR()
Also, fix similar issue in uvc_v4l2_try_format() for potential
dereferencing of ERR_PTR().
Signed-off-by: Abhishek Tamboli <abhishektamboli9@gmail.com>
Link: https://lore.kernel.org/r/20240815102202.594812-1-abhishektamboli9@gmail.com
Signed-off-by: Jianqi Ren <jianqi.ren.cn@windriver.com>
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/mmu_notifier.c')
0 files changed, 0 insertions, 0 deletions