This should check ">pmctrl" instead of "->sysctrl". This bug could
potentially lead to a crash if we dereference the error pointer.
Fixes: 73075011ffff ("phy: HiSilicon: Add driver for Kirin 970 PCIe PHY")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20211117074843.GE5237@kili
Signed-off-by: Vinod Koul <vkoul@kernel.org>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| phy-hi3660-usb3.c | ||
| phy-hi3670-pcie.c | ||
| phy-hi3670-usb3.c | ||
| phy-hi6220-usb.c | ||
| phy-hisi-inno-usb2.c | ||
| phy-histb-combphy.c | ||
| phy-hix5hd2-sata.c | ||