Commit 546faf0
qla3xxx: Return proper error codes when the 4022/4032 is being probed
The return code was not properly set when when allocating memory or mapping
memory failed. Depending on the stack, the return code would sometimes
return 0, which indicates everything was ok, when in fact there was an error.
This would cause trouble when the module was removed. Now, we will pass
back the proper return code when an error occurs during the PCI probe.
Signed-off-by: Benjamin Li <benjamin.li@qlogic.com>
Signed-off-by: Ron Mercer <ron.mercer@qlogic.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>1 parent 908b637 commit 546faf0
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3609 | 3609 | | |
3610 | 3610 | | |
3611 | 3611 | | |
3612 | | - | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
3613 | 3616 | | |
| 3617 | + | |
3614 | 3618 | | |
3615 | 3619 | | |
3616 | 3620 | | |
| |||
3639 | 3643 | | |
3640 | 3644 | | |
3641 | 3645 | | |
| 3646 | + | |
3642 | 3647 | | |
3643 | 3648 | | |
3644 | 3649 | | |
| |||
3667 | 3672 | | |
3668 | 3673 | | |
3669 | 3674 | | |
| 3675 | + | |
3670 | 3676 | | |
3671 | 3677 | | |
3672 | 3678 | | |
| |||
0 commit comments