usb: typec: ucsi: Don't attempt to resume the ports before they exist
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 31 Jan 2023 14:15:18 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Feb 2023 10:27:28 +0000 (11:27 +0100)
commitf82060da749c611ed427523b6d1605d87338aac1
tree427e9d3a880975e3dad0b926fea1da042ab8cab8
parent30d09b3131f5b1b9d54ad9b7ee171a45e21362b3
usb: typec: ucsi: Don't attempt to resume the ports before they exist

This will fix null pointer dereference that was caused by
the driver attempting to resume ports that were not yet
registered.

Fixes: e0dced9c7d47 ("usb: typec: ucsi: Resume in separate work")
Cc: <stable@vger.kernel.org>
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216697
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230131141518.78215-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c