diff --git a/fs/hfs/brec.c b/fs/hfs/brec.c
index da25c49203cc52bfa17c6177295d60d124ebe0a3..896396554bcc1785a4400f6f3886d04f5e696153 100644
--- a/fs/hfs/brec.c
+++ b/fs/hfs/brec.c
@@ -445,6 +445,7 @@ static int hfs_brec_update_parent(struct hfs_find_data *fd)
 			/* restore search_key */
 			hfs_bnode_read_key(node, fd->search_key, 14);
 		}
+		new_node = NULL;
 	}
 
 	if (!rec && node->parent)