From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: Re: [PATCHv4 1/4] procfs: Introduce socinfo under /proc Date: Mon, 10 May 2010 15:54:40 +0300 Message-ID: <20100510125440.GA31721@nokia.com> References: <1273487857-32281-1-git-send-email-eduardo.valentin@nokia.com> <1273487857-32281-3-git-send-email-eduardo.valentin@nokia.com> <1273487857-32281-1-git-send-email-eduardo.valentin@nokia.com> <1273487857-32281-2-git-send-email-eduardo.valentin@nokia.com> <20100510111259.GA14680@linux-sh.org> Reply-To: felipe.balbi@nokia.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Return-path: Received: from smtp.nokia.com ([192.100.105.134]:21586 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751800Ab0EJM4n (ORCPT ); Mon, 10 May 2010 08:56:43 -0400 Content-Disposition: inline In-Reply-To: <20100510111259.GA14680@linux-sh.org> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: ext Paul Mundt Cc: "Valentin Eduardo (Nokia-D/Helsinki)" , LKML , "linux-arm-kernel@lists.infradead.org" , Linux-OMAP , Russell King , Andrew Morton , ext Tony Lindgren , ext Kevin Hilman , "De-Schrijver Peter (Nokia-D/Helsinki)" , "santosh.shilimkar@ti.com" , Ambresh , "Balbi Felipe (Nokia-D/Helsinki)" On Mon, May 10, 2010 at 01:13:00PM +0200, ext Paul Mundt wrote: >You'll still need the show function, but all of the rest of this is just >duplicating what single_open() already does. If the socinfo string is >static you may also want to rework this a bit so you can just stash the >string in the proc_dir_entry private data. Combine this with something >like kstrdup() and you'll save yourself a bit of stack while you're at >it. doesn't ksrtdup() cause memleak ?? Or is it only when used with module parameters ?? -- balbi DefectiveByDesign.org