summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJeffin Philip <jeffinphilip14@gmail.com>2026-08-16 11:47:12 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-01 16:49:47 +0200
commit6e74ac5c596fd246e37eadfc354567179ccbe9aa (patch)
treefeb183397148f00583a5d5f52aee662afaddd81a /scripts/Makefile.thinlto
parent7b0df6efd143f8085bdb68778a013a46f1349913 (diff)
downloadlinux-6e74ac5c596fd246e37eadfc354567179ccbe9aa.tar.gz
linux-6e74ac5c596fd246e37eadfc354567179ccbe9aa.zip
usb: gadget: fix null pointer dereference in usb_put_function_instance()
usb_put_function_instance() attempts to dereference fd inside fi struct to get mod in uvc_alloc_inst() error path. However, fd is not allocated until later in try_get_usb_function_instance() after allocating fi in uvc_alloc_inst() and thus guranteed to be null in error path. Fix this by adding a null check for fi->fd that returns if fd is null. Reported-by: syzbot+fd6ef980cf1c722be639@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=fd6ef980cf1c722be639 Fixes: 0062f6e56f70 ("usb: gadget: add a forward pointer from usb_function to its "instance"") Cc: stable <stable@kernel.org> Signed-off-by: Jeffin Philip <jeffinphilip14@gmail.com> Link: https://patch.msgid.link/20260816061712.15547-1-jeffinphilip14@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions