Hi All, I found a bug in vfs_open function. It is not correctly handled the returned NULL value by vfs_node_get. My patch is attached, let me know.
Best regards, Manuele
=== modified file 'uspace/srv/vfs/vfs_ops.c' --- uspace/srv/vfs/vfs_ops.c 2015-10-06 19:01:36 +0000 +++ uspace/srv/vfs/vfs_ops.c 2016-04-22 11:27:24 +0000 @@ -636,6 +636,11 @@ fibril_rwlock_write_unlock(&namespace_rwlock); else fibril_rwlock_read_unlock(&namespace_rwlock); + + if (!node) { + async_answer_0(rid, ENOMEM); + return; + } /* Truncate the file if requested and if necessary. */ if (oflag & O_TRUNC) {
_______________________________________________ HelenOS-devel mailing list HelenOS-devel@lists.modry.cz http://lists.modry.cz/listinfo/helenos-devel