summaryrefslogtreecommitdiff
path: root/drivers/watchdog/watchdog_hrtimer_pretimeout.c
diff options
context:
space:
mode:
authorJameson Thies <jthies@google.com>2024-06-25 03:46:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-09-18 20:25:18 +0300
commit729ae6e7618772b46f065d43c424a358ab4d4663 (patch)
tree325a0187c0e3c6f7290faddeb2e460462cbdd437 /drivers/watchdog/watchdog_hrtimer_pretimeout.c
parent7d318166bf55e9029d56997c3b134f4ac2ae2607 (diff)
downloadlinux-729ae6e7618772b46f065d43c424a358ab4d4663.tar.xz
usb: typec: ucsi: Only set number of plug altmodes after registration
commit 22d96a285449ba78abeaf3e197caca46bc24f8e5 upstream. Move the setting of the plug's number of alternate modes into the same condition as the plug's registration to prevent dereferencing the connector's plug pointer while it is null. Fixes: c313a44ac9cd ("usb: typec: ucsi: Always set number of alternate modes") Suggested-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Jameson Thies <jthies@google.com> Reviewed-by: Benson Leung <bleung@chromium.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Link: https://lore.kernel.org/r/20240625004607.3223757-1-jthies@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/watchdog/watchdog_hrtimer_pretimeout.c')
0 files changed, 0 insertions, 0 deletions