Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dee1bf76 authored by Chaehyun Lim's avatar Chaehyun Lim Committed by Greg Kroah-Hartman
Browse files

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: default avatarChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bd07b007
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {