From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750773AbWDUXzW (ORCPT ); Fri, 21 Apr 2006 19:55:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750774AbWDUXzW (ORCPT ); Fri, 21 Apr 2006 19:55:22 -0400 Received: from ozlabs.org ([203.10.76.45]:54489 "EHLO ozlabs.org") by vger.kernel.org with ESMTP id S1750773AbWDUXzV (ORCPT ); Fri, 21 Apr 2006 19:55:21 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17481.28892.506618.865014@cargo.ozlabs.ibm.com> Date: Sat, 22 Apr 2006 09:55:08 +1000 From: Paul Mackerras To: Andrew Morton Cc: James Morris , dwalker@mvista.com, linux-kernel@vger.kernel.org Subject: Re: kfree(NULL) In-Reply-To: <20060421015412.49a554fa.akpm@osdl.org> References: <200604210703.k3L73VZ6019794@dwalker1.mvista.com> <20060421015412.49a554fa.akpm@osdl.org> X-Mailer: VM 7.19 under Emacs 21.4.1 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Andrew Morton writes: > Yes, kfree(NULL) is supposed to be uncommon. If someone's doing it a lot > then we should fix up the callers. Well, we'd have to start by fixing up the janitors that run around taking out the if statements in the callers. :) Paul.