Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S270004AbUJNIva (ORCPT ); Thu, 14 Oct 2004 04:51:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269999AbUJNIva (ORCPT ); Thu, 14 Oct 2004 04:51:30 -0400 Received: from mx1.redhat.com ([66.187.233.31]:9708 "EHLO mx1.redhat.com") by vger.kernel.org with ESMTP id S270004AbUJNIvC (ORCPT ); Thu, 14 Oct 2004 04:51:02 -0400 Date: Thu, 14 Oct 2004 04:50:05 -0400 From: Jakub Jelinek To: Arun Sharma Cc: David Woodhouse , Christoph Hellwig , linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: Re: [PATCH] Support ia32 exec domains without CONFIG_IA32_SUPPORT Message-ID: <20041014085003.GM31909@devserv.devel.redhat.com> Reply-To: Jakub Jelinek References: <41643EC0.1010505@intel.com> <20041007142710.A12688@infradead.org> <4165D4C9.2040804@intel.com> <41671696.1060706@intel.com> <416AF599.2060801@intel.com> <1097617824.5178.20.camel@localhost.localdomain> <416C5ECF.6060402@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <416C5ECF.6060402@intel.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 988 Lines: 38 On Tue, Oct 12, 2004 at 03:46:39PM -0700, Arun Sharma wrote: > --- linux-2.6-cvs/fs/namei.c 2 Oct 2004 17:59:55 -0000 1.110 > +++ linux-2.6-cvs/fs/namei.c 8 Oct 2004 18:14:11 -0000 > @@ -897,7 +897,7 @@ > return 1; > } > > -void set_fs_altroot(void) > +int set_fs_altroot(const char __user *altroot) > { > char *emul = __emul_prefix(); I think you should change this to char *emul; > struct nameidata nd; > @@ -905,12 +905,20 @@ > struct dentry *dentry = NULL, *olddentry; > int err; > > + if (altroot) { > + emul = getname(altroot); > + if (IS_ERR(emul)) > + return PTR_ERR(emul); > + } > + and add here else emul = __emul_prefix(); There is no point in calling __emul_prefix () when it will be thrown away. Jakub - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/