um: Do not unlock mutex that is not hold.
authorDaniel Walter <dwalter@google.com>
Tue, 2 Apr 2019 08:43:32 +0000 (10:43 +0200)
committerRichard Weinberger <richard@nod.at>
Tue, 7 May 2019 21:18:28 +0000 (23:18 +0200)
commit9ca55299f2ee0a2ccf41d99bfc02d5ad3118e03b
tree51c2a5a533c3561be6dbb4325ed520ae985903f0
parent91e1e547abcd88f1e23204e62e377aaa7c93a786
um: Do not unlock mutex that is not hold.

Return error instead of trying to unlock a mutex that is not hold.

Signed-off-by: Daniel Walter <dwalter@google.com>
Reviewed-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/ubd_kern.c