diff options
| author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-06-11 21:04:09 +0200 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-06-13 22:43:10 -0700 |
| commit | 9b994b4a074c5d1daea0e9d4eb83e0372a3337e5 (patch) | |
| tree | 9126a1698f41abb1748253371bf8af9277649e78 /include/linux/stackprotector.h | |
| parent | 6358f38c062d791ec1b617738f5c2de54f0ff6db (diff) | |
r8169: let mdio read functions return -ETIMEDOUT
In case of a timeout currently ~0 is returned. Callers often just check
whether a certain bit is set and therefore may behave incorrectly.
So let's return -ETIMEDOUT in case of a timeout.
r8168_phy_ocp_read is used in r8168g_mdio_read only, therefore we can
apply the same change.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
