diff options
author | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2019-11-12 10:22:28 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-05 14:43:38 +0000 |
commit | ddba92fa8338d3ee081d9be7702c287a8daf9111 (patch) | |
tree | dce9706690af63c3c1bfbad5f202b07942b0a6b4 /drivers/media | |
parent | 3f43d55a25534d4b81ca7a981801354b7f07ce00 (diff) | |
download | linux-stable-ddba92fa8338d3ee081d9be7702c287a8daf9111.tar.gz linux-stable-ddba92fa8338d3ee081d9be7702c287a8daf9111.tar.bz2 linux-stable-ddba92fa8338d3ee081d9be7702c287a8daf9111.zip |
media: dvb-usb/dvb-usb-urb.c: initialize actlen to 0
commit 569bc8d6a6a50acb5fcf07fb10b8d2d461fdbf93 upstream.
This fixes a syzbot failure since actlen could be uninitialized,
but it was still used.
Syzbot link:
https://syzkaller.appspot.com/bug?extid=6bf9606ee955b646c0e1
Reported-and-tested-by: syzbot+6bf9606ee955b646c0e1@syzkaller.appspotmail.com
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/usb/dvb-usb/dvb-usb-urb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/dvb-usb/dvb-usb-urb.c b/drivers/media/usb/dvb-usb/dvb-usb-urb.c index c1b4e94a37f8..2aabf90d8697 100644 --- a/drivers/media/usb/dvb-usb/dvb-usb-urb.c +++ b/drivers/media/usb/dvb-usb/dvb-usb-urb.c @@ -12,7 +12,7 @@ int dvb_usb_generic_rw(struct dvb_usb_device *d, u8 *wbuf, u16 wlen, u8 *rbuf, u16 rlen, int delay_ms) { - int actlen,ret = -ENOMEM; + int actlen = 0, ret = -ENOMEM; if (!d || wbuf == NULL || wlen == 0) return -EINVAL; |