staging: wilc1000: wilc_msgqueue: release semaphore in error path
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 29 Jan 2016 14:51:33 +0000 (23:51 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:33:09 +0000 (15:33 -0800)
commit8231dfc0879f8f0caecfcdc4b1ebae67cad6878d
tree52ee869e96e639ed8900e1b3fde16247db2c6285
parente9670aba93bce75cd6dc78010a8548da793ef1bb
staging: wilc1000: wilc_msgqueue: release semaphore in error path

It should be called up(&mq->sem) to release semaphore before returning
error codes as -EFAULT when list is empty.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_msgqueue.c