Changeset 8d2cd8b in mainline for uspace/srv/fs/exfat/exfat_ops.c


Ignore:
Timestamp:
2011-12-10T10:41:05Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
76da580a
Parents:
c62751f
Message:

exfat: exfat_link(), release the directory instance and the mutex in case of error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/exfat/exfat_ops.c

    rc62751f r8d2cd8b  
    739739         */
    740740        rc = exfat_directory_write_file(&di, name);
    741         if (rc != EOK)
    742                 return rc;
     741        if (rc != EOK) {
     742                (void) exfat_directory_close(&di);
     743                fibril_mutex_unlock(&parentp->idx->lock);
     744                return rc;
     745        }
    743746        rc = exfat_directory_close(&di);
    744         if (rc != EOK)
    745                 return rc;
     747        if (rc != EOK) {
     748                fibril_mutex_unlock(&parentp->idx->lock);
     749                return rc;
     750        }
    746751
    747752        fibril_mutex_unlock(&parentp->idx->lock);
Note: See TracChangeset for help on using the changeset viewer.