USB: keyspan: fix null-deref at probe
authorJohan Hovold <johan@kernel.org>
Mon, 22 Dec 2014 17:39:39 +0000 (18:39 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Jan 2015 14:44:38 +0000 (15:44 +0100)
commit59a9543fa081caa845b6e6d93a274fa28ade1d38
tree6fc96ad5c73e69028c70dd37c6f33e3026a75a0b
parent689b76995d49bb808958a054f55c1f2648571a84
USB: keyspan: fix null-deref at probe

commit b5122236bba8d7ef62153da5b55cc65d0944c61e upstream.

Fix null-pointer dereference during probe if the interface-status
completion handler is called before the individual ports have been set
up.

Fixes: f79b2d0fe81e ("USB: keyspan: fix NULL-pointer dereferences and
memory leaks")
Reported-by: Richard <richjunk@pacbell.net>
Tested-by: Richard <richjunk@pacbell.net>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/serial/keyspan.c