From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.nokia.com ([192.100.122.233] helo=mgw-mx06.nokia.com) by bombadil.infradead.org with esmtps (Exim 4.68 #1 (Red Hat Linux)) id 1LAMkk-0005ba-JW for linux-mtd@lists.infradead.org; Wed, 10 Dec 2008 10:57:15 +0000 Subject: Re: [PATCH] UBI: Return -ENOMEM upon failing malloc From: Artem Bityutskiy To: Stefan Roese In-Reply-To: <1228902174-24597-1-git-send-email-sr@denx.de> References: <1228902174-24597-1-git-send-email-sr@denx.de> Content-Type: text/plain; charset=utf-8 Date: Wed, 10 Dec 2008 12:54:52 +0200 Message-Id: <1228906492.13686.243.camel@sauron> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Cc: linux-mtd@lists.infradead.org Reply-To: dedekind@infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2008-12-10 at 10:42 +0100, Stefan Roese wrote: > Return with correct error code (-ENOMEM) from ubi_attach_mtd_dev() upon > failing malloc(). >=20 > Signed-off-by: Stefan Roese > --- > drivers/mtd/ubi/build.c | 16 +++++++++++----- > 1 files changed, 11 insertions(+), 5 deletions(-) Thanks for the patch. I've improved it a little bit and pushed: http://git.infradead.org/users/dedekind/ubi-2.6.git?a=3Dcommit;h=3Dad5942ba= d6addcf9697a74413b517d9724d803a4 --=20 Best regards, Artem Bityutskiy (=D0=91=D0=B8=D1=82=D1=8E=D1=86=D0=BA=D0=B8=D0=B9 =D0=90= =D1=80=D1=82=D1=91=D0=BC)