Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758146AbYGKTWh (ORCPT ); Fri, 11 Jul 2008 15:22:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758067AbYGKTTk (ORCPT ); Fri, 11 Jul 2008 15:19:40 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:42313 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759904AbYGKTTj (ORCPT ); Fri, 11 Jul 2008 15:19:39 -0400 Date: Fri, 11 Jul 2008 12:18:42 -0700 From: Andrew Morton To: Mathieu Desnoyers Cc: Masami Hiramatsu , LKML , Hideo AOKI , Takahiro Yasui Subject: Re: [PATCH -mm] markers: avoid call_rcu_sched if old is NULL Message-Id: <20080711121842.070c1342.akpm@linux-foundation.org> In-Reply-To: <20080709030200.GA4378@Krystal> References: <4873CE05.2030001@redhat.com> <20080709030200.GA4378@Krystal> X-Mailer: Sylpheed 2.4.8 (GTK+ 2.12.5; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1110 Lines: 27 On Tue, 8 Jul 2008 23:02:01 -0400 Mathieu Desnoyers wrote: > * Masami Hiramatsu (mhiramat@redhat.com) wrote: > > Introduce marker_entry_free_old() and check old pointer is NULL before > > setting call_rcu_sched(), because marker_entry_remove/add_probe() can > > return NULL. > > > > Hi Masami, > > I doubt this is a bug per se, because kfree accepts NULL pointers (and > kfree is the only action done on the oldptr by free_old_closure). > > This cleans up the code, so I think it's good to merge your patch, but I > would definitely not classify this as a bugfix. > > Acked-by: Mathieu Desnoyers I cannot get this to apply on the rather dated tree which I have on this rather not-on-the-internet machine. Please merge this patch locally, test, rewrite the changelog and resend it to someone ;) -- 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/