Searched hist:dbc6fc7e (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/net/pcs/ |
H A D | pcs-rzn1-miic.c | dbc6fc7e Tue Jun 28 08:12:59 CDT 2022 Yang Yingliang <yangyingliang@huawei.com> net: pcs-rzn1-miic: fix return value check in miic_probe()
On failure, devm_platform_ioremap_resource() returns a ERR_PTR() value and not NULL. Fix return value checking by using IS_ERR() and return PTR_ERR() as error value.
Fixes: 7dc54d3b8d91 ("net: pcs: add Renesas MII converter driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Clément Léger <clement.leger@bootlin.com> Link: https://lore.kernel.org/r/20220628131259.3109124-1-yangyingliang@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|