From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtps.tip.net.au (chilli.pcug.org.au [203.10.76.44]) by ozlabs.org (Postfix) with ESMTP id 302F2DE608 for ; Mon, 9 Jun 2008 23:32:07 +1000 (EST) Date: Mon, 9 Jun 2008 23:32:01 +1000 From: Stephen Rothwell To: Julia Lawall Subject: Re: [PATCH 2/4] drivers/macintosh/smu.c: add missing of_node_put Message-Id: <20080609233201.fc638cc7.sfr@canb.auug.org.au> In-Reply-To: References: <20080609230752.f3bba16d.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Mon__9_Jun_2008_23_32_01_+1000_Y8+KERnE/P1TbrA4" Cc: linuxppc-dev@ozlabs.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --Signature=_Mon__9_Jun_2008_23_32_01_+1000_Y8+KERnE/P1TbrA4 Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Julia, On Mon, 9 Jun 2008 15:22:53 +0200 (CEST) Julia Lawall wrote: > > > However, the error handling in that routine (smu_init) needs much more > > work. >=20 > Indeed, the smu =3D NULL at the end of the function seems a bit brutal - = a=20 > lot of allocated data ends up not getting freed. I can try to do=20 > something about it. Did you see something else? There are paths to fail: where you would need to of_node_put smu->db_node or smu->msg_node (or both) and undo the smu->db_buf ioremap. --=20 Cheers, Stephen Rothwell sfr@canb.auug.org.au http://www.canb.auug.org.au/~sfr/ --Signature=_Mon__9_Jun_2008_23_32_01_+1000_Y8+KERnE/P1TbrA4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkhNMNEACgkQTgG2atn1QN/gXgCeJZUty5Mov1oSItRv5dVnuAkk ujAAn2DsIAVH3gRScVMm4Ilk/13E8Iwx =sPVg -----END PGP SIGNATURE----- --Signature=_Mon__9_Jun_2008_23_32_01_+1000_Y8+KERnE/P1TbrA4--