Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1423128AbXBPEKp (ORCPT ); Thu, 15 Feb 2007 23:10:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1423120AbXBPEKp (ORCPT ); Thu, 15 Feb 2007 23:10:45 -0500 Received: from nwd2mail10.analog.com ([137.71.25.55]:12980 "EHLO nwd2mail10.analog.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423128AbXBPEKo (ORCPT ); Thu, 15 Feb 2007 23:10:44 -0500 X-IronPort-AV: i="4.14,179,1170651600"; d="scan'208"; a="27648125:sNHT24486525" Subject: Re: [PATCH] shm: Fix the locking and cleanup error handling in do_shmat. From: "Wu, Bryan" Reply-To: bryan.wu@analog.com To: "Eric W. Biederman" Cc: Michal Piotrowski , Andrew Morton , linux-kernel@vger.kernel.org In-Reply-To: References: <20070215051408.a7fb7d81.akpm@linux-foundation.org> <45D47020.1010309@googlemail.com> <20070215140232.0aba86a7.akpm@linux-foundation.org> <45D4EBB3.2060800@googlemail.com> <45D4F91F.505@googlemail.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Analog Devices, Inc. Date: Fri, 16 Feb 2007 12:10:26 +0800 Message-Id: <1171599026.6853.36.camel@roc-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1737 Lines: 48 On Thu, 2007-02-15 at 22:34 -0500, Eric W. Biederman wrote: > > drivers/video/Kconfig:1606:warning: 'select' used by config symbol > 'FB_PS3' > > refer to undefined symbol 'PS3_PS3AV' > > /mnt/md0/devel/linux-mm/ipc/shm.c: In function 'do_shmat': > > /mnt/md0/devel/linux-mm/ipc/shm.c:945: warning: passing argument 1 > of 'IS_ERR' > > makes pointer from integer without a cast > > /mnt/md0/devel/linux-mm/ipc/shm.c:946: warning: passing argument 1 > of 'PTR_ERR' > > makes pointer from integer without a cast > > /mnt/md0/devel/linux-mm/ipc/shm.c:931: warning: label 'out_nattch' > defined but > > not used > > /mnt/md0/devel/linux-mm/ipc/shm.c:890: error: label 'out_put_path' > used but not > > defined > > make[2]: *** [ipc/shm.o] Error 1 > > make[1]: *** [ipc] Error 2 > > make: *** [_all] Error 2 > > Definitely some weird patch application problem. > > All of the calls to IS_ERR and PTR_ERR should have been removed. > Michal since it didn't seem to blow up when Andrew applied it I'm > going to assume the problem is on your end for now. > > Eric > Hi Eric, I am also troubling with the incorrect "nattch" value in do_shmat(). Actually, I found this bugs when I do some LTP testing on blackfin-uClinux platform. The "nattch" value returned from shmctl() system call is wrong. So I think your patch can solve this bug. But which version Linux kernel is your patch applying for? I want to do some test on my blackfin-uClinux 2.6.20 platform. Thanks -Bryan - 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/