aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorHeikki Krogerus <[email protected]>2020-03-11 16:00:05 +0300
committerGreg Kroah-Hartman <[email protected]>2020-03-12 09:34:52 +0100
commitd16e7b62c5adcd13832c6b0ba364c3468d21b856 (patch)
tree6f4f81a59a455ebfd6f0802b695442ef97d5977d /scripts/gcc-plugins/sancov_plugin.c
parentb63e48fb50e1ca71db301ca9082befa6f16c55c4 (diff)
usb: typec: ucsi: displayport: Fix NULL pointer dereference
If the registration of the DisplayPort was not successful, or if the port does not support DisplayPort alt mode in the first place, the function ucsi_displayport_remove_partner() will fail with NULL pointer dereference when it attempts to access the driver data. Adding a check to the function to make sure there really is driver data for the device before modifying it. Fixes: af8622f6a585 ("usb: typec: ucsi: Support for DisplayPort alt mode") Reported-by: Andrea Gagliardi La Gala <[email protected]> BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206365 Cc: [email protected] Signed-off-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions