Commit 7f69dc1
net: 3com: typhoon: typhoon_init_one: fix incorrect return values
[ Upstream commit 107fded7bf616ad6f46823d98b8ed6405d7adf2d ]
In a few cases the err-variable is not set to a negative error code if a
function call in typhoon_init_one() fails and thus 0 is returned
instead.
It may be better to set err to the appropriate negative error
code before returning.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188841
Reported-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Thomas Preisner <thomas.preisner+linux@fau.de>
Signed-off-by: Milan Stephan <milan.stephan+linux@fau.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 6097976 commit 7f69dc1
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2398 | 2398 | | |
2399 | 2399 | | |
2400 | 2400 | | |
2401 | | - | |
| 2401 | + | |
2402 | 2402 | | |
| 2403 | + | |
2403 | 2404 | | |
2404 | 2405 | | |
2405 | 2406 | | |
2406 | 2407 | | |
2407 | 2408 | | |
2408 | 2409 | | |
2409 | 2410 | | |
2410 | | - | |
| 2411 | + | |
| 2412 | + | |
2411 | 2413 | | |
2412 | 2414 | | |
2413 | 2415 | | |
| |||
2449 | 2451 | | |
2450 | 2452 | | |
2451 | 2453 | | |
2452 | | - | |
| 2454 | + | |
| 2455 | + | |
2453 | 2456 | | |
2454 | 2457 | | |
2455 | 2458 | | |
| |||
0 commit comments