mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 00:47:56 -04:00
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 <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bd07b0076b
commit
dee1bf76d9
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user