From: Johan Hovold Date: Tue, 3 Jan 2017 15:39:40 +0000 (+0100) Subject: USB: serial: cyberjack: fix NULL-deref at open X-Git-Tag: v3.2.87~137 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c44811bd33d5b07d1eb5ee60a5e227971a11ffe;p=pandora-kernel.git USB: serial: cyberjack: fix NULL-deref at open commit 3dca01114dcecb1cf324534cd8d75fd1306a516b upstream. Fix NULL-pointer dereference when clearing halt at open should the device lack a bulk-out endpoint. Unable to handle kernel NULL pointer dereference at virtual address 00000030 ... PC is at cyberjack_open+0x40/0x9c [cyberjack] 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