diff options
| author | Johan Hovold <johan@kernel.org> | 2017-01-03 16:39:59 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 11:22:46 +0100 |
| commit | b835f4cd67009d1f265e525f27bf236ede0a3f8b (patch) | |
| tree | 56cae7c251e22556bee265d0b51360b7ca7fb28b /tools/perf/scripts/python | |
| parent | 374250ed9b26b1aa798cc0929756644b44edb308 (diff) | |
USB: serial: oti6858: fix NULL-deref at open
commit 5afeef2366db14587b65558bbfd5a067542e07fb upstream.
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 oti6858_open+0x30/0x1d0 [oti6858]
Note that a missing interrupt-in endpoint would have caused open() to
fail.
Fixes: 49cdee0ed0fc ("USB: oti6858 usb-serial driver (in Nokia CA-42
cable)")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
