Changeset 4db43721 in mainline


Ignore:
Timestamp:
2011-01-10T16:36:10Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6643a19
Parents:
4a5c6c1
Message:

Fix double mutex unlock in devman client code (thx Vojtech Horky).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/devman.c

    r4a5c6c1 r4db43721  
    7979                }
    8080               
    81                 if (flags & IPC_FLAG_BLOCKING)
     81                if (flags & IPC_FLAG_BLOCKING) {
    8282                        devman_phone_client = async_connect_me_to_blocking(
    8383                            PHONE_NS, SERVICE_DEVMAN, DEVMAN_CLIENT, 0);
    84                 else
     84                } else {
    8585                        devman_phone_client = async_connect_me_to(PHONE_NS,
    8686                            SERVICE_DEVMAN, DEVMAN_CLIENT, 0);
    87                         fibril_mutex_unlock(&devman_phone_mutex);
     87                }
    8888               
    8989                fibril_mutex_unlock(&devman_phone_mutex);
Note: See TracChangeset for help on using the changeset viewer.