From: Johan Hovold Date: Tue, 3 Jan 2017 15:39:49 +0000 (+0100) Subject: USB: serial: kobil_sct: fix NULL-deref in write X-Git-Tag: v3.2.87~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a22d4c0086f61db0b46d84760fd072d6fc0b58bb;p=pandora-kernel.git 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 [bwh: Backported to 3.2: add this check to the existing usb_serial_driver::attach implementation] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed