From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YH6E0-0006t4-AF for barebox@lists.infradead.org; Fri, 30 Jan 2015 07:42:45 +0000 Date: Fri, 30 Jan 2015 08:42:21 +0100 From: Sascha Hauer Message-ID: <20150130074221.GQ12209@pengutronix.de> References: <1422528186-3666-1-git-send-email-yamada.m@jp.panasonic.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1422528186-3666-1-git-send-email-yamada.m@jp.panasonic.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v3] param: add error check to __dev_add_param() To: Masahiro Yamada Cc: barebox@lists.infradead.org On Thu, Jan 29, 2015 at 07:43:06PM +0900, Masahiro Yamada wrote: > If strdup() fails with out-of-memory, __dev_add_param() should fail > with -ENOMEM. > > (Note strdup() is always given with a non-NULL pointer. If the > argument name is given with NULL, the system would already have > crashed in the get_param_by_name() function.) > > Signed-off-by: Masahiro Yamada Applied, thanks Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox