]> www.infradead.org Git - users/willy/pagecache.git/commit
net: mdio-ipq4019: add missing error check
authorRosen Penev <rosenp@gmail.com>
Thu, 21 Nov 2024 19:31:52 +0000 (11:31 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 26 Nov 2024 10:01:39 +0000 (11:01 +0100)
commit9cc8d0ecdd2aad42e377e971e3bb114339df609e
tree8e8fc27ab016dfdd6183fdf1bfea1033544480f8
parent82159e6ab409bd7c3de4fafdc27d64a58bcb154a
net: mdio-ipq4019: add missing error check

If an optional resource is found but fails to remap, return on failure.
Avoids any potential problems when using the iomapped resource as the
assumption is that it's available.

Fixes: 23a890d493e3 ("net: mdio: Add the reset function for IPQ MDIO driver")
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241121193152.8966-1-rosenp@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/mdio/mdio-ipq4019.c