On Fri, Jun 23, 2023 at 11:10:35PM +0800, Kyle Tso wrote:
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: a7cff92f0635 ("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
thanks,