]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
phy: qcom: m31-eusb2: fix match data santity check
authorJohan Hovold <johan+linaro@kernel.org>
Tue, 17 Jun 2025 08:05:03 +0000 (10:05 +0200)
committerVinod Koul <vkoul@kernel.org>
Fri, 27 Jun 2025 00:10:12 +0000 (17:10 -0700)
commit603bd9808f58009e1f230271f94e1b9e13d506ba
treeae20172a7a33fd983eb9dd9f97b0cd7c2b195c5c
parent03aa45d6c62d6861dcbcff627d88814c0ddecc88
phy: qcom: m31-eusb2: fix match data santity check

The device_get_match_data() helper returns NULL if a new entry is ever
added without corresponding match data.

Fixes: 9c8504861cc4 ("phy: qcom: Add M31 based eUSB2 PHY driver")
Cc: Wesley Cheng <quic_wcheng@quicinc.com>
Cc: Melody Olvera <melody.olvera@oss.qualcomm.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20250617080503.11262-1-johan+linaro@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/qualcomm/phy-qcom-m31-eusb2.c