Index: uspace/srv/fs/tmpfs/tmpfs_ops.c
===================================================================
--- uspace/srv/fs/tmpfs/tmpfs_ops.c	(revision 75701004b4fe1a0a5f2b92aef205e5bfbf9a69e3)
+++ uspace/srv/fs/tmpfs/tmpfs_ops.c	(revision ec397203e399886ac45d617da8098ea6ae81f914)
@@ -597,5 +597,4 @@
 
 	ht_link_t *hlp = hash_table_find(&nodes, &key);
-
 	if (!hlp)
 		return ENOENT;
@@ -609,5 +608,5 @@
 
 	void *newdata = realloc(nodep->data, size);
-	if (!newdata)
+	if (!newdata && size)
 		return ENOMEM;
 
