Changeset 6639ae1 in mainline
- Timestamp:
- 2011-04-07T12:04:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f56c90, b62dc100
- Parents:
- b910455
- git-author:
- Jiri Zarevucky <> (2011-04-07 12:04:43)
- git-committer:
- Jakub Jermar <jakub@…> (2011-04-07 12:04:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_file.c
rb910455 r6639ae1 258 258 if ((fd >= 0) && (fd < MAX_OPEN_FILES)) { 259 259 vfs_file_t *file = FILES[fd]; 260 vfs_file_addref(file); 261 fibril_mutex_unlock(&VFS_DATA->lock); 262 return file; 260 if (file != NULL) { 261 vfs_file_addref(file); 262 fibril_mutex_unlock(&VFS_DATA->lock); 263 return file; 264 } 263 265 } 264 266 fibril_mutex_unlock(&VFS_DATA->lock);
Note:
See TracChangeset
for help on using the changeset viewer.