diff --git a/fs/hfs/bnode.c b/fs/hfs/bnode.c index 13d58c5..255db8e 100644 --- a/fs/hfs/bnode.c +++ b/fs/hfs/bnode.c @@ -517,8 +517,7 @@ struct hfs_bnode *hfs_bnode_create(struct hfs_btree *tree, u32 num) spin_unlock(&tree->hash_lock); if (node) { pr_crit("new node %u already hashed?\n", num); - WARN_ON(1); - return node; + return ERR_PTR(-EIO); } node = __hfs_bnode_create(tree, num); if (!node)