Index: uspace/srv/fs/fat/fat_ops.c
===================================================================
--- uspace/srv/fs/fat/fat_ops.c	(revision 79d031be78a6f4e5e2744d3ed086c1c93b963b05)
+++ uspace/srv/fs/fat/fat_ops.c	(revision c06dbf987b8818e884ffb821d8939584cb0ebe41)
@@ -292,5 +292,5 @@
 	block_t *b;
 	fat_dentry_t *d;
-	fat_node_t *nodep;
+	fat_node_t *nodep = NULL;
 	unsigned bps;
 	unsigned dps;
@@ -303,5 +303,5 @@
 		futex_down(&idxp->nodep->lock);
 		if (!idxp->nodep->refcnt++)
-			list_remove(&nodep->ffn_link);
+			list_remove(&idxp->nodep->ffn_link);
 		futex_up(&idxp->nodep->lock);
 		return idxp->nodep;
