]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: usb: lan78xx: Fix error handling in MII read/write functions
authorOleksij Rempel <o.rempel@pengutronix.de>
Wed, 4 Dec 2024 08:41:37 +0000 (09:41 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Dec 2024 01:53:07 +0000 (17:53 -0800)
commit32ee0dc764505278229078e496e7b56a6d65224b
tree45cba11be59c77bd7536771dc2a2024dd89f2b76
parent9bcdc610cfabe8784f80b8c84f950cc5693f146b
net: usb: lan78xx: Fix error handling in MII read/write functions

Ensure proper error handling in `lan78xx_mdiobus_read` and
`lan78xx_mdiobus_write` by checking return values of register read/write
operations and returning errors to the caller.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241204084142.1152696-6-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/lan78xx.c