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