summaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorJack Pham <jackp@codeaurora.org>2016-07-14 10:52:11 -0700
committerJack Pham <jackp@codeaurora.org>2016-07-14 10:56:39 -0700
commit61c66d0fb074510155365f4dd03770bcd870be68 (patch)
tree6f35c13853911a1eba14e2587455a7a5afae9103 /scripts/gcc-wrapper.py
parent400520a6e2f06cc7c45e386e769a85d4aded565b (diff)
usb: pd: pdphy: Assign __pdphy before usbpd_create()
As the PD PHY probes, assign the static __pdphy pointer with the pdphy instance prior to calling usbpd_create(). This ensures that if the policy engine state machine kicks off right away and calls back into the PHY APIs that there is a valid instance found. As further safeguarding, also fix the open/close/signal/write APIs in the case where the instance cannot be found by using pr_err instead of dev_err which would lead to a NULL pointer dereference. Change-Id: I59a01f2ac3b0c374eb3420f40054cc05a80226ba Signed-off-by: Jack Pham <jackp@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions