Re: [PATCH] pinctrl: return -ENOMEM instead of -EINVAL for kasprintf() failure

From: Linus Walleij
Date: Tue May 31 2016 - 04:33:29 EST

On Wed, May 25, 2016 at 1:14 PM, Masahiro Yamada
<yamada.masahiro@xxxxxxxxxxxxx> wrote:

> -ENOMEM is more suitable error code because kasprintf() fails
> in case of memory shortage.
> Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>

Obviously correct.

Patch applied.

Linus Walleij