Index: uspace/lib/libc/generic/vfs/vfs.c
===================================================================
--- uspace/lib/libc/generic/vfs/vfs.c	(revision 57edf88766c6a50640bebb11c0cb6b11bd697ffc)
+++ uspace/lib/libc/generic/vfs/vfs.c	(revision b7f908712f345dc3c714eaee170629c2df743a90)
@@ -223,4 +223,6 @@
 	futex_up(&vfs_phone_futex);
 	free(pa);
+
+	if (rc != EOK) return (int) rc;
 	return (int) IPC_GET_ARG1(answer);
 }
