Index: uspace/srv/vfs/vfs_ops.c
===================================================================
--- uspace/srv/vfs/vfs_ops.c	(revision 1d432f9b3f6833cb86d4ee1903d5cdc12a99f6aa)
+++ uspace/srv/vfs/vfs_ops.c	(revision 179d052bd8f476fcf6318dc690211df13a60f86d)
@@ -592,4 +592,5 @@
 	}
 	vfs_file_t *file = vfs_file_get(fd);
+	assert(file);
 	file->node = node;
 	if (oflag & O_APPEND)
