]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: dvb-usb-v2: lmedm04: Improve logic checking of warm start
authorMalcolm Priestley <tvboxspy@gmail.com>
Tue, 26 Sep 2017 21:10:20 +0000 (17:10 -0400)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:44 +0000 (08:15 -0600)
commit8a98ab02eeb1f26084bc6bceb8ba6ce89146146b
treeb4c7d728e55410cb5c05a0faf35913022c02871e
parent3add5ce3636793ecf314b468268200e91246f348
media: dvb-usb-v2: lmedm04: Improve logic checking of warm start

BugLink: http://bugs.launchpad.net/bugs/1751064
commit 3d932ee27e852e4904647f15b64dedca51187ad7 upstream.

Warm start has no check as whether a genuine device has
connected and proceeds to next execution path.

Check device should read 0x47 at offset of 2 on USB descriptor read
and it is the amount requested of 6 bytes.

Fix for
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access as

Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/media/usb/dvb-usb-v2/lmedm04.c