Commit 4b642dc
usb: typec: Iterate pds array when showing the pd list
The pointers of each usb_power_delivery handles are stored in "pds"
array returned from the pd_get ops but not in the adjacent memory
calculated from "pd". Get the handles from "pds" array directly instead
of deriving them from "pd".
Fixes: a7cff92 ("usb: typec: USB Power Delivery helpers for ports and partners")
Cc: stable@vger.kernel.org
Signed-off-by: Kyle Tso <kyletso@google.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230623151036.3955013-3-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent b33ebb2 commit 4b642dc
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | | - | |
1281 | | - | |
| 1280 | + | |
1282 | 1281 | | |
1283 | 1282 | | |
1284 | 1283 | | |
| |||
1287 | 1286 | | |
1288 | 1287 | | |
1289 | 1288 | | |
1290 | | - | |
1291 | | - | |
1292 | | - | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1293 | 1292 | | |
1294 | | - | |
| 1293 | + | |
1295 | 1294 | | |
1296 | 1295 | | |
1297 | 1296 | | |
| |||
0 commit comments