USB: keyspan: fix null-deref at probe
authorJohan Hovold <johan@kernel.org>
Mon, 22 Dec 2014 17:39:39 +0000 (18:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2015 15:52:32 +0000 (07:52 -0800)
commitb9e33b264083ffd7d9d2ad301c3c336e7519a99f
tree5d9c7ca2e172d1bba7a5c578863681eecb5b5ca4
parent11959cfbb097164fc01fdcb0d9a4fa47628a91fd
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/keyspan.c