From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763373AbXJETRv (ORCPT ); Fri, 5 Oct 2007 15:17:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750842AbXJETRn (ORCPT ); Fri, 5 Oct 2007 15:17:43 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:54039 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759232AbXJETRm (ORCPT ); Fri, 5 Oct 2007 15:17:42 -0400 Date: Fri, 5 Oct 2007 12:17:41 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: WANG Cong cc: LKML , Andrew Morton , linux-mm@kvack.org Subject: Re: [Patch]Documentation/vm/slabinfo.c: clean up this code In-Reply-To: <20071005124614.GD12498@hacking> Message-ID: References: <20071005124614.GD12498@hacking> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 5 Oct 2007, WANG Cong wrote: > > This patch does the following cleanups for Documentation/vm/slabinfo.c: > > - Fix two memory leaks; For user space code? Memory will be released as soon as the program terminates. > - Constify some char pointers; > - Use snprintf instead of sprintf in case of buffer overflow; > - Fix some indentations; > - Other little improvements. Acked-by: Christoph Lameter