From: Chaehyun Lim Date: Fri, 5 Feb 2016 01:35:14 +0000 (+0900) Subject: staging: wilc1000: fix return error code of wilc_deinit X-Git-Tag: v4.6~331^2~1247 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8eb62f3f6d8e58ec1b0eedee73ddd371a80a1bd3;p=platform%2Fkernel%2Flinux-amlogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index ef7c90f..c42286a 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -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);