Re: [PATCH 1/4] gpiolib: check descriptors validity before use
From: Grant Likely
Date: Tue Feb 26 2013 - 14:27:35 EST
On Fri, 15 Feb 2013 14:46:14 +0900, Alexandre Courbot <acourbot@xxxxxxxxxx> wrote:
> Some functions dereferenced their GPIO descriptor argument without
> checking its validity first, potentially leading to an oops when given
> an invalid argument.
>
> This patch also makes gpio_get_value() more resilient when given an
> invalid GPIO, returning 0 instead of silently crashing.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Cc: Ryan Mallon <rmallon@xxxxxxxxx>
Applied, thanks.
g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/