summaryrefslogtreecommitdiff
path: root/samples/workqueue/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorNathan Rebello <nathan.c.rebello@gmail.com>2026-04-07 02:39:58 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-04-07 13:35:44 +0200
commit5a1140404cbf7ba40137dfb1fb96893aa9a67d68 (patch)
treea32a998614a1f0211dfeee616ef8255157cea1ab /samples/workqueue/git@git.tavy.me:linux-stable.git
parent591cd656a1bf5ea94a222af5ef2ee76df029c1d2 (diff)
usb: typec: ucsi: skip connector validation before init
Notifications can arrive before ucsi_init() has populated ucsi->cap.num_connectors via GET_CAPABILITY. At that point num_connectors is still 0, causing all valid connector numbers to be incorrectly rejected as bogus. Skip the bounds check when num_connectors is 0 (not yet initialized). Pre-init notifications are already handled safely by the early-event guard in ucsi_connector_change(). Reported-by: Takashi Iwai <tiwai@suse.de> Fixes: d2d8c17ac01a ("usb: typec: ucsi: validate connector number in ucsi_notify_common()") Cc: stable@vger.kernel.org Signed-off-by: Nathan Rebello <nathan.c.rebello@gmail.com> Tested-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20260407063958.863-1-nathan.c.rebello@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/workqueue/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions