]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Return correct failure code on error
authorSimon Graham <simon.graham@virtualcomputer.com>
Wed, 8 Feb 2012 17:34:23 +0000 (12:34 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 8 Feb 2012 21:07:24 +0000 (16:07 -0500)
commit3fbde0835e4dfa2510ad1c178e53c79bb09bdcb7
tree167e14204cbc3de6857684f79fe8d21a336ddefb
parentec0df94e6f164fa9de3a61ee63707f6a3c5570e8
rtlwifi: Return correct failure code on error

Callers of rtl_pci_init expect zero to be returned on error. Returning
the error code leads to, amongst other things, divide by zero panics
attempting to use the ring size that is set to zero.

Signed-off-by: Simon Graham <simon.graham@virtualcomputer.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/pci.c