Skip to content
Commit f0ae8685 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

phy: HiSilicon: Fix copy and paste bug in error handling



This should check ">pmctrl" instead of "->sysctrl".  This bug could
potentially lead to a crash if we dereference the error pointer.

Fixes: 73075011 ("phy: HiSilicon: Add driver for Kirin 970 PCIe PHY")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lore.kernel.org/r/20211117074843.GE5237@kili


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent a1b6c81b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment