From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Linus Walleij <linus.walleij@linaro.org>,
linux-gpio@vger.kernel.org,
Alexandre Courbot <acourbot@nvidia.com>
Cc: stable@vger.kernel.org
Subject: Re: [PATCH v2] gpio: make library immune to error pointers
Date: Thu, 16 Jun 2016 16:05:47 +0300 [thread overview]
Message-ID: <5762A42B.6000502@ti.com> (raw)
In-Reply-To: <1466076157-9805-1-git-send-email-linus.walleij@linaro.org>
On 06/16/2016 02:22 PM, Linus Walleij wrote:
> Most functions that take a GPIO descriptor in need to check the
> descriptor for IS_ERR(). We do this mostly in the VALIDATE_DESC()
> macro except for the gpiod_to_irq() function which needs special
> handling.
>
> Cc: stable@vger.kernel.org
> Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v2:
> - Complain when descriptors contain error values so the offending
> code can be fixed.
> ---
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
--
regards,
-grygorii
WARNING: multiple messages have this Message-ID (diff)
From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Linus Walleij <linus.walleij@linaro.org>,
<linux-gpio@vger.kernel.org>,
Alexandre Courbot <acourbot@nvidia.com>
Cc: <stable@vger.kernel.org>
Subject: Re: [PATCH v2] gpio: make library immune to error pointers
Date: Thu, 16 Jun 2016 16:05:47 +0300 [thread overview]
Message-ID: <5762A42B.6000502@ti.com> (raw)
In-Reply-To: <1466076157-9805-1-git-send-email-linus.walleij@linaro.org>
On 06/16/2016 02:22 PM, Linus Walleij wrote:
> Most functions that take a GPIO descriptor in need to check the
> descriptor for IS_ERR(). We do this mostly in the VALIDATE_DESC()
> macro except for the gpiod_to_irq() function which needs special
> handling.
>
> Cc: stable@vger.kernel.org
> Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> ChangeLog v1->v2:
> - Complain when descriptors contain error values so the offending
> code can be fixed.
> ---
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
--
regards,
-grygorii
next prev parent reply other threads:[~2016-06-16 13:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-16 11:22 [PATCH v2] gpio: make library immune to error pointers Linus Walleij
2016-06-16 13:05 ` Grygorii Strashko [this message]
2016-06-16 13:05 ` Grygorii Strashko
2016-06-17 1:15 ` Alexandre Courbot
2016-06-17 1:15 ` Alexandre Courbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5762A42B.6000502@ti.com \
--to=grygorii.strashko@ti.com \
--cc=acourbot@nvidia.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.