commit | 03a8533d9d06b029dcc8bb818a6ca30db7782ab3 | [log] [tgz] |
---|---|---|
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | Tue Nov 12 10:22:24 2019 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Wed Feb 05 14:18:15 2020 +0000 |
tree | fd2de5a126cbd0d0f93941dd1da73a8948ad25d4 | |
parent | b7fae41e420f3db83466b9dcd26e06ae706b85ab [diff] |
media: gspca: zero usb_buf commit de89d0864f66c2a1b75becfdd6bf3793c07ce870 upstream. Allocate gspca_dev->usb_buf with kzalloc instead of kmalloc to ensure it is property zeroed. This fixes various syzbot errors about uninitialized data. Syzbot links: https://syzkaller.appspot.com/bug?extid=32310fc2aea76898d074 https://syzkaller.appspot.com/bug?extid=99706d6390be1ac542a2 https://syzkaller.appspot.com/bug?extid=64437af5c781a7f0e08e Reported-and-tested-by: syzbot+32310fc2aea76898d074@syzkaller.appspotmail.com Reported-and-tested-by: syzbot+99706d6390be1ac542a2@syzkaller.appspotmail.com Reported-and-tested-by: syzbot+64437af5c781a7f0e08e@syzkaller.appspotmail.com Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>