android_kernel_msm-6.1_noth.../drivers/phy/tegra
EJ Hsu 238edc04dd phy: tegra: xusb: Clear the driver reference in usb-phy dev
commit c0c2fcb1325d0d4f3b322b5ee49385f8eca2560d upstream.

For the dual-role port, it will assign the phy dev to usb-phy dev and
use the port dev driver as the dev driver of usb-phy.

When we try to destroy the port dev, it will destroy its dev driver
as well. But we did not remove the reference from usb-phy dev. This
might cause the use-after-free issue in KASAN.

Fixes: e8f7d2f409 ("phy: tegra: xusb: Add usb-phy support")
Cc: stable@vger.kernel.org

Signed-off-by: EJ Hsu <ejh@nvidia.com>
Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20230609062932.3276509-1-haotienh@nvidia.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-19 16:21:45 +02:00
..
Kconfig
Makefile
phy-tegra194-p2u.c phy: tegra: Add PCIe PIPE2UPHY support for Tegra234 2022-07-05 11:44:35 +05:30
xusb-tegra124.c
xusb-tegra186.c USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
xusb-tegra210.c
xusb.c phy: tegra: xusb: Clear the driver reference in usb-phy dev 2023-07-19 16:21:45 +02:00
xusb.h phy: tegra: xusb: add utmi pad power on/down ops 2022-08-19 11:10:08 +02:00