[PATCH] param: add error check to __dev_add_param()

Masahiro Yamada yamada.m at jp.panasonic.com
Thu Jan 29 01:15:11 PST 2015


Hi Sascha,

On Thu, 29 Jan 2015 09:56:23 +0100
Sascha Hauer <s.hauer at pengutronix.de> wrote:

> On Thu, Jan 29, 2015 at 11:42:36AM +0900, Masahiro Yamada wrote:
> > If the argument, name is given with NULL, it would be probably
> > unexpected behavior.  It should fail rather than register the
> > NULL-named parameter.
> > 
> > If strdup() fails with out-of-memory, it should also fail
> > with -ENOMEM.
> 
> Applied, thanks
> 
> Sascha

Uh, this has been superseded by v2.





More information about the barebox mailing list