2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-27 06:34:11 +08:00

staging: wilc1000: fix return error code of wilc_deinit

It should be returned error code as -EFAULT instead of 0 when hif_drv is
NULL.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Chaehyun Lim 2016-02-05 10:35:14 +09:00 committed by Greg Kroah-Hartman
parent 127a27c3fb
commit 8eb62f3f6d

View File

@ -3695,7 +3695,7 @@ int wilc_deinit(struct wilc_vif *vif)
if (!hif_drv) {
PRINT_ER("hif_drv = NULL\n");
return 0;
return -EFAULT;
}
down(&hif_sema_deinit);