lkml.org 
[lkml]   [2013]   [Feb]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 1/4] gpiolib: check descriptors validity before use
Date
On Fri, 15 Feb 2013 14:46:14 +0900, Alexandre Courbot <acourbot@nvidia.com> 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@nvidia.com>
> Cc: Ryan Mallon <rmallon@gmail.com>

Applied, thanks.

g.



\
 
 \ /
  Last update: 2013-02-26 21:04    [W:0.217 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site