aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/arm-cs-trace-disasm.py
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2023-03-08 15:42:42 +0000
committerGreg Kroah-Hartman <[email protected]>2023-03-09 13:39:20 +0000
commitf87fb985452ab2083967103ac00bfd68fb182764 (patch)
tree35e253679dddfbe6974e5ff10b827ba31944cf46 /tools/perf/scripts/python/arm-cs-trace-disasm.py
parentLinux 6.3-rc1 (diff)
downloadkernel-f87fb985452ab2083967103ac00bfd68fb182764.tar.gz
kernel-f87fb985452ab2083967103ac00bfd68fb182764.zip
usb: ucsi: Fix NULL pointer deref in ucsi_connector_change()
When ucsi_init() fails, ucsi->connector is NULL, yet in case of ucsi_acpi we may still get events which cause the ucs_acpi code to call ucsi_connector_change(), which then derefs the NULL ucsi->connector pointer. Fix this by not setting ucsi->ntfy inside ucsi_init() until ucsi_init() has succeeded, so that ucsi_connector_change() ignores the events because UCSI_ENABLE_NTFY_CONNECTOR_CHANGE is not set in the ntfy mask. Fixes: bdc62f2bae8f ("usb: typec: ucsi: Simplified registration and I/O API") Link: https://bugzilla.kernel.org/show_bug.cgi?id=217106 Cc: [email protected] Reviewed-by: Heikki Krogerus <[email protected]> Signed-off-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions