From: Michal MalĂ˝ Date: Tue, 20 Aug 2013 11:49:09 +0000 (+0200) Subject: Unlock mutex in fail path. X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=c32c74f5e75d1c44dbd4ebfeb690ab3e883d49df;p=omnibook.git Unlock mutex in fail path. --- diff --git a/cooling.c b/cooling.c index d7bae1b..80d1215 100755 --- a/cooling.c +++ b/cooling.c @@ -72,9 +72,8 @@ static int omnibook_cooling_write(char *buffer, struct omnibook_operation *io_op if (!retval) io_op->backend->cooling_state = *buffer - '0' ; - mutex_unlock(&io_op->backend->mutex); - out: + mutex_unlock(&io_op->backend->mutex); return retval; }