Files
linux/drivers/net/usb
Pavel Skripkin d1652b70d0 asix: fix wrong return value in asix_check_host_enable()
If asix_read_cmd() returns 0 on 30th interation, 0 will be returned from
asix_check_host_enable(), which is logically wrong. Fix it by returning
-ETIMEDOUT explicitly if we have exceeded 30 iterations

Also, replaced 30 with #define as suggested by Andrew

Fixes: a786e3195d ("net: asix: fix uninit value bugs")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/ecd3470ce6c2d5697ac635d0d3b14a47defb4acb.1640117288.git.paskripkin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-12-22 14:52:18 -08:00
..
2021-10-02 14:18:25 +01:00
2021-10-02 14:18:25 +01:00
2021-06-17 11:30:25 -07:00
2021-06-01 17:05:05 -07:00
2021-09-17 11:19:58 +01:00
2021-06-01 17:05:05 -07:00
2021-10-02 14:18:25 +01:00
2021-10-02 14:18:25 +01:00
2021-10-15 14:34:35 +01:00
2021-06-01 17:05:05 -07:00
2021-10-22 10:15:56 -07:00