android_kernel_oneplus_msm8998/drivers/isdn/gigaset
Johan Hovold 4f47ca4882 isdn/gigaset: fix NULL-deref at probe
commit 68c32f9c2a36d410aa242e661506e5b2c2764179 upstream.

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer should a malicious device lack endpoints.

Fixes: cf7776dc05 ("[PATCH] isdn4linux: Siemens Gigaset drivers - direct USB connection")
Cc: Hansjoerg Lipp <hjlipp@web.de>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-26 12:13:19 +02:00
..
asyncdata.c isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
bas-gigaset.c isdn/gigaset: fix NULL-deref at probe 2017-03-26 12:13:19 +02:00
capi.c isdn/capi: handle CAPI 2.0 message parser failures 2014-10-14 15:05:35 -04:00
common.c isdn/gigaset: beautify common.c 2013-01-21 17:36:25 -05:00
dummyll.c isdn/gigaset: unify function return values 2012-05-07 22:37:56 -04:00
ev-layer.c isdn/gigaset: restructure modem response parser (4) 2015-03-23 16:47:24 -04:00
gigaset.h isdn/gigaset: drop duplicate declaration 2014-12-10 15:06:09 -05:00
i4l.c isdn/gigaset: unify function return values 2012-05-07 22:37:56 -04:00
interface.c TTY: add tty_port_tty_wakeup helper 2013-03-18 16:19:45 -07:00
isocdata.c isdn/gigaset: unify function return values 2012-05-07 22:37:56 -04:00
Kconfig isdn/gigaset: enable Kernel CAPI support by default 2014-12-10 15:06:10 -05:00
Makefile gigaset: add Kernel CAPI interface (v3) 2009-10-06 22:43:53 -07:00
proc.c isdn: whitespace coding style cleanup 2012-02-21 09:04:01 -08:00
ser-gigaset.c ser_gigaset: return -ENOMEM on error instead of success 2017-01-15 13:41:34 +01:00
usb-gigaset.c isdn/gigaset: elliminate unnecessary argument from send_cb() 2014-12-10 15:06:09 -05:00