Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libertas: fix error return code in if_cs_probe()

Fix to return -ENODEV in the unknown model error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Wei Yongjun and committed by
John W. Linville
7777bd45 a497e47d

+1
+1
drivers/net/wireless/libertas/if_cs.c
··· 902 902 if (card->model == MODEL_UNKNOWN) { 903 903 pr_err("unsupported manf_id 0x%04x / card_id 0x%04x\n", 904 904 p_dev->manf_id, p_dev->card_id); 905 + ret = -ENODEV; 905 906 goto out2; 906 907 } 907 908