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