USB: keyspan: fix null-deref at probe
commitb5122236bba8d7ef62153da5b55cc65d0944c61e
authorJohan Hovold <johan@kernel.org>
Mon, 22 Dec 2014 17:39:39 +0000 (22 18:39 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 2 Jan 2015 14:12:28 +0000 (2 15:12 +0100)
treee841c5904d371c6bf01dd5352a8b840f53f4e760
parent90441b4dbe90ba0c38111ea89fa093a8c9627801
USB: keyspan: fix null-deref at probe

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/keyspan.c