From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [PATCH] spi/doc: spi_master_put must be followed up by kfree Date: Fri, 09 Mar 2012 14:38:35 -0700 Message-ID: <20120309213835.E922C3E0880@localhost> References: <1329990014-14889-1-git-send-email-u.kleine-koenig@pengutronix.de> Content-Type: multipart/mixed; boundary="===============3107742836629003466==" Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org To: Uwe Kleine-König Return-path: In-Reply-To: <1329990014-14889-1-git-send-email-u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org --===============3107742836629003466== On Thu, 23 Feb 2012 10:40:14 +0100, Uwe Kleine-König wrote: > Signed-off-by: Uwe Kleine-König Applied, thanks. g. > --- > drivers/spi/spi.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c > index b2ccdea..4be88d7 100644 > --- a/drivers/spi/spi.c > +++ b/drivers/spi/spi.c > @@ -539,7 +539,8 @@ static struct class spi_master_class = { > * > * The caller is responsible for assigning the bus number and initializing > * the master's methods before calling spi_register_master(); and (after errors > - * adding the device) calling spi_master_put() to prevent a memory leak. > + * adding the device) calling spi_master_put() and kfree() to prevent a memory > + * leak. > */ > struct spi_master *spi_alloc_master(struct device *dev, unsigned size) > { > -- > 1.7.9 > -- Grant Likely, B.Sc, P.Eng. Secret Lab Technologies,Ltd. --===============3107742836629003466== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ --===============3107742836629003466== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/spi-devel-general --===============3107742836629003466==--