Changeset 921f393 in mainline


Ignore:
Timestamp:
2014-07-05T18:38:11Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6bcecc2
Parents:
a91a935
git-author:
Wolf Ramovsky <wolf.ramovsky@…> (2014-07-05 18:38:11)
git-committer:
Jan Vesely <jano.vesely@…> (2014-07-05 18:38:11)
Message:

libgraph: Fix mutex unlock in error path

jan vesely: Fix indentation of the surrounding code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/graph/graph.c

    ra91a935 r921f393  
    300300                size_t len;
    301301
    302         if (!async_data_read_receive(&callid, &len)) {
     302                if (!async_data_read_receive(&callid, &len)) {
    303303                        async_answer_0(iid, EINVAL);
    304304                        return;
    305         }
    306         int rc = async_data_read_finalize(callid, &mode, len);
     305                }
     306                int rc = async_data_read_finalize(callid, &mode, len);
    307307                if (rc != EOK) {
    308308                        async_answer_0(iid, ENOMEM);
     
    312312                async_answer_0(iid, EOK);
    313313        } else {
     314                fibril_mutex_unlock(&vs->mode_mtx);
    314315                async_answer_0(iid, ENOENT);
    315316        }
Note: See TracChangeset for help on using the changeset viewer.