]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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, 9 Feb 2023 10:28:21 +0000 (11:28 +0100)
commitfdd11d7136fd070b3a74d6d8799d9eac28a57fc5
tree7ba0997b9466a40b5001a62f2b3a451628c054e9
parentdd63f6f0d94673c44bb84b1fd9ef32baba67f2e9
usb: typec: ucsi: Don't attempt to resume the ports before they exist

commit f82060da749c611ed427523b6d1605d87338aac1 upstream.

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