commit | d27f0201b93cb1016c232c46e0b8e1bf4c02a7ea | [log] [tgz] |
---|---|---|
author | Oleksij Rempel <o.rempel@pengutronix.de> | Thu Apr 29 13:08:31 2021 +0200 |
committer | David S. Miller <davem@davemloft.net> | Thu Apr 29 15:54:35 2021 -0700 |
tree | ad291b525b8e03c5aa1856e54429a3aaf335616a | |
parent | 8343b1f8b97ac016150c8303f95b63b20b98edf8 [diff] |
net: dsa: ksz: ksz8863_smi_probe: fix possible NULL pointer dereference Fix possible NULL pointer dereference in case devm_kzalloc() failed to allocate memory. Fixes: 60a364760002 ("net: dsa: microchip: Add Microchip KSZ8863 SMI based driver support") Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>