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

Changeset 6f2c1ff in mainline


Ignore:
Timestamp:
2016-04-25T08:18:05Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
8a36bc1e
Parents:
bc41f3a3
git-author:
Manuele Conti <conti.manuele@…> (2016-04-25 08:18:05)
git-committer:
Jakub Jermar <jakub@…> (2016-04-25 08:18:05)
Message:

vfs: Sanitize the case when vfs_node_get() returns NULL in vfs_open()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_ops.c

    rbc41f3a3 r6f2c1ff  
    637637        else
    638638                fibril_rwlock_read_unlock(&namespace_rwlock);
     639
     640        if (!node) {
     641                async_answer_0(rid, ENOMEM);
     642                return;
     643        }
    639644       
    640645        /* Truncate the file if requested and if necessary. */
Note: See TracChangeset for help on using the changeset viewer.