summaryrefslogtreecommitdiffstats
path: root/drivers/base/cacheinfo.c
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2022-10-10 15:51:32 +0200
committerVinod Koul <vkoul@kernel.org>2022-10-17 07:37:37 +0200
commit2a4ea83bb8e54986703187edce59c9130a75eb26 (patch)
treea1f2683b1f69a4f3fff09f10f58a1ce93f501ea6 /drivers/base/cacheinfo.c
parentphy: stm32: fix an error code in probe (diff)
downloadlinux-2a4ea83bb8e54986703187edce59c9130a75eb26.tar.xz
linux-2a4ea83bb8e54986703187edce59c9130a75eb26.zip
phy: tegra: xusb: Fix crash during pad power on/down
Commit a88520bfc0ec ("usb: gadget: tegra: Reduce pad power") added calls to tegra_phy_xusb_utmi_pad_power_on/down in the Tegra XUDC driver to control the pad power. This change is causing a kernel panic when powering down the pads on entering suspend with the Jetson TX2 platform. The panic occurs because the 'xudc->curr_utmi_phy' is not configured on this platform and we do not check to see if the pointer is valid before attempting to deference the pointer. Fix this by checking to see if the 'phy' pointer passed to tegra_phy_xusb_utmi_pad_power_on/down is valid. Fixes: a88520bfc0ec ("usb: gadget: tegra: Reduce pad power") Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Link: https://lore.kernel.org/r/20221010135132.30809-1-jonathanh@nvidia.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/base/cacheinfo.c')
0 files changed, 0 insertions, 0 deletions