diff options
author | Johan Hovold <johan@kernel.org> | 2017-01-03 16:39:55 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2017-01-04 10:37:20 +0100 |
commit | 5c75633ef751dd4cd8f443dc35152c1ae563162e (patch) | |
tree | c13653b5c65ae3a665c28a3c5f0e98698908c924 /mm/percpu-vm.c | |
parent | USB: serial: mos7720: remove obsolete port initialisation (diff) | |
download | linux-5c75633ef751dd4cd8f443dc35152c1ae563162e.tar.xz linux-5c75633ef751dd4cd8f443dc35152c1ae563162e.zip |
USB: serial: mos7840: fix NULL-deref at open
Fix NULL-pointer dereference in open() should the device lack the
expected endpoints:
Unable to handle kernel NULL pointer dereference at virtual address 00000030
...
PC is at mos7840_open+0x88/0x8dc [mos7840]
Note that we continue to treat the interrupt-in endpoint as optional for
now.
Fixes: 3f5429746d91 ("USB: Moschip 7840 USB-Serial Driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'mm/percpu-vm.c')
0 files changed, 0 insertions, 0 deletions