[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZ97=TuKLa-UOSfCiCGdK7JAkb_GH8g_RTU_-yeh8bwhg@mail.gmail.com>
Date: Tue, 31 May 2016 10:33:24 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: "linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] pinctrl: return -ENOMEM instead of -EINVAL for
kasprintf() failure
On Wed, May 25, 2016 at 1:14 PM, Masahiro Yamada
<yamada.masahiro@...ionext.com> wrote:
> -ENOMEM is more suitable error code because kasprintf() fails
> in case of memory shortage.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@...ionext.com>
Obviously correct.
Patch applied.
Yours,
Linus Walleij
Powered by blists - more mailing lists