summaryrefslogtreecommitdiff
path: root/net/mctp
diff options
context:
space:
mode:
authorAndre Kalb <andre.kalb@sma.de>2023-01-25 21:23:26 +0300
committerJakub Kicinski <kuba@kernel.org>2023-01-28 11:23:58 +0300
commit422ae7d9c7221e8d4c8526d0f54106307d69d2dc (patch)
treec53c7348a892d0a100eff4e9085dedda2982fa4c /net/mctp
parent29de68c2b32ce58d64dea496d281e25ad0f551bd (diff)
downloadlinux-422ae7d9c7221e8d4c8526d0f54106307d69d2dc.tar.xz
net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices
The probe() function is only used for the DP83822 PHY, leaving the private data pointer uninitialized for the smaller DP83825/26 models. While all uses of the private data structure are hidden in 82822 specific callbacks, configuring the interrupt is shared across all models. This causes a NULL pointer dereference on the smaller PHYs as it accesses the private data unchecked. Verifying the pointer avoids that. Fixes: 5dc39fd5ef35 ("net: phy: DP83822: Add ability to advertise Fiber connection") Signed-off-by: Andre Kalb <andre.kalb@sma.de> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/Y9FzniUhUtbaGKU7@pc6682 Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/mctp')
0 files changed, 0 insertions, 0 deletions