]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
USB: serial: kobil_sct: fix NULL-deref in write
authorJohan Hovold <johan@kernel.org>
Tue, 3 Jan 2017 15:39:49 +0000 (16:39 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 4 Jan 2017 09:37:18 +0000 (10:37 +0100)
commit21ce57840243c7b70fbc1ebd3dceeb70bb6e9e09
tree442cf1fa484c3a4e1950cbf162cd28646b54c087
parent5d9b0f859babe96175cd33d7162a9463a875ffde
USB: serial: kobil_sct: fix NULL-deref in write

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")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kobil_sct.c