From: Chaehyun Lim Date: Thu, 21 Jan 2016 11:30:49 +0000 (+0900) Subject: staging: wilc1000: fix return error code X-Git-Tag: android-x86-7.1-r1~1876^2~1369 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=dee1bf76d96783a902a9aa5804e6a108f283b2d1;p=android-x86%2Fkernel.git staging: wilc1000: fix return error code Three argument are checked at the beginning of wilc_mq_send whether they are valid arguments or not. It is correct to use return error code as -EINVAL, not -EFAULT. Signed-off-by: Chaehyun Lim Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wilc1000/wilc_msgqueue.c b/drivers/staging/wilc1000/wilc_msgqueue.c index 764723f99996..361ca8fbac31 100644 --- a/drivers/staging/wilc1000/wilc_msgqueue.c +++ b/drivers/staging/wilc1000/wilc_msgqueue.c @@ -61,7 +61,7 @@ int wilc_mq_send(struct message_queue *mq, if ((!mq) || (send_buf_size == 0) || (!send_buf)) { PRINT_ER("mq or send_buf is null\n"); - return -EFAULT; + return -EINVAL; } if (mq->exiting) {