Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 8d2cd8b in mainline


Ignore:
Timestamp:
2011-12-10T10:41:05Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
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.