Files
android_kernel_xiaomi_sm8450/drivers/usb/serial
Johan Hovold 126d26f66d USB: serial: fix potential NULL-dereference at probe
Make sure we have at least one port before attempting to register a
console.

Currently, at least one driver binds to a "dummy" interface and requests
zero ports for it. Should such an interface also lack endpoints, we get
a NULL-deref during probe.

Fixes: e5b1e2062e ("USB: serial: make minor allocation dynamic")
Cc: stable <stable@vger.kernel.org>	# 3.11
Signed-off-by: Johan Hovold <johan@kernel.org>
2016-10-21 16:47:17 +02:00
..
2005-04-16 15:20:36 -07:00
2016-07-16 12:45:39 +02:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2010-05-20 13:21:47 -07:00
2015-12-18 09:30:34 -08:00
2008-02-01 14:34:47 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-07-22 13:03:22 -07:00