summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJeffin Philip <jeffinphilip14@gmail.com>2026-08-15 11:10:06 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-09-01 16:41:27 +0200
commit7e07d3e4c389217d7d7171d80edf2e23ac70f1ea (patch)
tree92096c5b8012e6777f59de344c58750886c6f737 /scripts/Makefile.thinlto
parentfed0aa7c6eaedc6c0d4e362fc91724aa47be4a7b (diff)
downloadlinux-stable-7e07d3e4c389217d7d7171d80edf2e23ac70f1ea.tar.gz
linux-stable-7e07d3e4c389217d7d7171d80edf2e23ac70f1ea.zip
usb: gadget: f_midi: initialize work in f_midi_alloc()
f_midi_alloc initializes free_ref to 1 and it can only be incremented when a sound card is registered via f_midi_register_card(). f_midi_register_card() is only called in f_midi_bind() which actually performs INIT_WORK. If f_midi_bind() is never run, work is not initialized and the if condition in f_midi_free becomes true, this results in a warning later in __flush_work as work->func = 0. Fix this by moving INIT_WORK from f_midi_bind() to f_midi_alloc(). Reported-by: syzbot+d5fa3d224505c8610702@syzkaller.appspotmail.com Closes: https://syzkaller.appspot.com/bug?extid=d5fa3d224505c8610702 Fixes: 8653d71ce376 ("usb/gadget: f_midi: Replace tasklet with work") Cc: stable <stable@kernel.org> Signed-off-by: Jeffin Philip <jeffinphilip14@gmail.com> Reviewed-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260815054006.102325-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