commit | 9de856caff86c18f092a03a16f06f1422796be94 | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Tue Jan 03 16:39:49 2017 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Jan 12 11:39:15 2017 +0100 |
tree | 5f7b43fab82bfef797ae467ed7268ff89a0eba74 | |
parent | b2aa55142ea5cff7217f2633e85602d2279ff92e [diff] |
USB: serial: kobil_sct: fix NULL-deref in write commit 21ce57840243c7b70fbc1ebd3dceeb70bb6e9e09 upstream. Fix NULL-pointer dereference in write() should the device lack the expected interrupt-out endpoint: Unable to handle kernel NULL pointer dereference at virtual address 00000054 ... PC is at kobil_write+0x144/0x2a0 [kobil_sct] Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>