summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-05-06 20:44:03 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-05-06 20:44:03 -0700
commitb625e47f04274538e32e99fe6d3dc01edc93d280 (patch)
tree191d8d8bb209685ab792053cfe3e2f30282902e5
parent5862221fddede6bb15566ab3c1f23a3c353da5e1 (diff)
parent525cb7ba6661074c1c5cc3772bccc6afab6791ef (diff)
Merge tag 'chrome-platform-fixes-v7.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux
Pull chrome-platform fix from Tzung-Bi Shih: - Fix a NULL dereference in cros_ec_typec * tag 'chrome-platform-fixes-v7.1-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux: platform/chrome: cros_ec_typec: Init mutex in Thunderbolt registration
-rw-r--r--drivers/platform/chrome/cros_typec_altmode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_typec_altmode.c b/drivers/platform/chrome/cros_typec_altmode.c
index 557340b53af0..66c546bf89b5 100644
--- a/drivers/platform/chrome/cros_typec_altmode.c
+++ b/drivers/platform/chrome/cros_typec_altmode.c
@@ -359,6 +359,7 @@ cros_typec_register_thunderbolt(struct cros_typec_port *port,
}
INIT_WORK(&adata->work, cros_typec_altmode_work);
+ mutex_init(&adata->lock);
adata->alt = alt;
adata->port = port;
adata->ap_mode_entry = true;