diff --git a/fs/hfs/bnode.c b/fs/hfs/bnode.c --- a/fs/hfs/bnode.c +++ b/fs/hfs/bnode.c @@ -517,8 +517,8 @@ 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)