Re: [PATCH net v1 1/1] net: usb: lan78xx: Sanitize return values of register read/write functions
From: patchwork-bot+netdevbpf
Date: Mon Mar 10 2025 - 16:40:15 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 7 Mar 2025 11:12:23 +0100 you wrote:
> usb_control_msg() returns the number of transferred bytes or a negative
> error code. The current implementation propagates the transferred byte
> count, which is unintended. This affects code paths that assume a
> boolean success/failure check, such as the EEPROM detection logic.
>
> Fix this by ensuring lan78xx_read_reg() and lan78xx_write_reg() return
> only 0 on success and preserve negative error codes.
>
> [...]
Here is the summary with links:
- [net,v1,1/1] net: usb: lan78xx: Sanitize return values of register read/write functions
https://git.kernel.org/netdev/net/c/cfa693bf9d53
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html