]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: wilc1000: fix return error code
authorChaehyun Lim <chaehyun.lim@gmail.com>
Thu, 21 Jan 2016 11:30:49 +0000 (20:30 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:21:18 +0000 (15:21 -0800)
commitdee1bf76d96783a902a9aa5804e6a108f283b2d1
treef27c0de25334e9140255dbd40f8da8861b08c111
parentbd07b0076b465712804a5b01609dbe8fba9b9110
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>
drivers/staging/wilc1000/wilc_msgqueue.c