Changeset 1882525 in mainline


Ignore:
Timestamp:
2010-10-05T19:52:42Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
49d871ea, f14291b
Parents:
db4ec8d
Message:

Unlock the mutex also in the error return paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    rdb4ec8d r1882525  
    13551355                int ret = vfs_close_internal(newfile);
    13561356                if (ret != EOK) {
     1357                        fibril_mutex_unlock(&oldfile->lock);
    13571358                        ipc_answer_0(rid, ret);
    13581359                        return;
     
    13611362                ret = vfs_fd_free(newfd);
    13621363                if (ret != EOK) {
     1364                        fibril_mutex_unlock(&oldfile->lock);
    13631365                        ipc_answer_0(rid, ret);
    13641366                        return;
Note: See TracChangeset for help on using the changeset viewer.