usb: typec: port-mapper: Do not crash on non-ACPI systems
authorHector Martin <marcan@marcan.st>
Sat, 8 Jan 2022 12:04:12 +0000 (21:04 +0900)
committerHector Martin <marcan@marcan.st>
Tue, 18 Jan 2022 11:20:27 +0000 (20:20 +0900)
commitd96ded288e40ee74240326b7dc19337e7be5a020
tree4f779676d9db08a076ff8e970ee0560f258b6895
parenta9d968dd6483512f5d78af61e3ddfe69e5f9c5a7
usb: typec: port-mapper: Do not crash on non-ACPI systems

If a match is not found in the ACPI bus, just return instead of trying
to link a NULL component.

Fixes: 730b49aac426 ("usb: typec: port-mapper: Convert to the component framework")
Signed-off-by: Hector Martin <marcan@marcan.st>
drivers/usb/typec/port-mapper.c