From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: [PATCH] fix double iget in romfs_fill_super Date: Sat, 8 Jan 2005 15:44:25 +0100 Message-ID: <20050108144425.GA3561@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org Return-path: Received: from verein.lst.de ([213.95.11.210]:65213 "EHLO mail.lst.de") by vger.kernel.org with ESMTP id S261180AbVAHOoc (ORCPT ); Sat, 8 Jan 2005 09:44:32 -0500 To: akpm@osdl.org Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org --- linux-2.6.10-mm2.orig/fs/romfs/inode.c 2004-12-24 22:35:01.000000000 +0100 +++ linux-2.6.10-mm2/fs/romfs/inode.c 2005-01-08 15:49:55.238871280 +0100 @@ -161,8 +161,7 @@ static int romfs_fill_super(struct super if (!root) goto out; - s->s_root = d_alloc_root(iget(s, sz)); - + s->s_root = d_alloc_root(root); if (!s->s_root) goto outiput;