aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb
diff options
context:
space:
mode:
authorBjorn Andersson <[email protected]>2021-05-15 20:47:30 -0700
committerGreg Kroah-Hartman <[email protected]>2021-05-21 14:26:42 +0200
commitacf5631c239dfc53489f739c4ad47f490c5181ff (patch)
treef345b24c2632ef2d31fdd2df8f9dd1db48e1d660 /scripts/gdb
parentdcb4b8ad6a448532d8b681b5d1a7036210b622de (diff)
usb: typec: mux: Fix matching with typec_altmode_desc
In typec_mux_match() "nval" is assigned the number of elements in the "svid" fwnode property, then the variable is used to store the success of the read and finally attempts to loop between 0 and "success" - i.e. not at all - and the code returns indicating that no match was found. Fix this by using a separate variable to track the success of the read, to allow the loop to get a change to find a match. Fixes: 96a6d031ca99 ("usb: typec: mux: Find the muxes by also matching against the device node") Reviewed-by: Heikki Krogerus <[email protected]> Cc: stable <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb')
0 files changed, 0 insertions, 0 deletions