Ignore:
Timestamp:
2014-01-23T04:20:43Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
07b8877
Parents:
486f479
Message:

libusbhost: Unlock mutex on error path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/ddf_helpers.c

    r486f479 r9ff59981  
    439439                }
    440440        }
    441         if (victim && victim->port == port) {
     441        if (victim) {
     442                assert(victim->port == port);
    442443                list_remove(&victim->link);
    443444                fibril_mutex_unlock(&hub->guard);
     
    452453                return EOK;
    453454        }
     455        fibril_mutex_unlock(&hub->guard);
    454456        return ENOENT;
    455457}
Note: See TracChangeset for help on using the changeset viewer.