]> git.karo-electronics.de Git - karo-tx-linux.git/commit
qla3xxx: Return proper error codes when the 4022/4032 is being probed
authorBenjamin Li <benjamin.li@qlogic.com>
Mon, 26 Feb 2007 19:06:31 +0000 (11:06 -0800)
committerJeff Garzik <jeff@garzik.org>
Tue, 27 Feb 2007 09:21:43 +0000 (04:21 -0500)
commit546faf077e14930df2ebddad9190db42f1c42f0f
tree57244f0736369b23063c080e1221d9d0e8ea6427
parent908b637fe793165b6aecdc875cdca67c4959a1ad
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>
drivers/net/qla3xxx.c