Skip to content
Commit 42bc0c97 authored by Simon Graham's avatar Simon Graham Committed by John W. Linville
Browse files

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: default avatarSimon Graham <simon.graham@virtualcomputer.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5ad20dd1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment