summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-rdc321x.c
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2013-02-15 14:46:14 +0900
committerGrant Likely <grant.likely@secretlab.ca>2013-03-02 13:20:19 +0000
commitbcabdef12da49878789464ad7239e97d83ea5ef5 (patch)
tree9ecc37897f165bdd812551f4696cd3ed7f78de65 /drivers/gpio/gpio-rdc321x.c
parentb0af9cd9aab60ceb17d3ebabb9fdf4ff0a99cf50 (diff)
downloadtalos-obmc-linux-bcabdef12da49878789464ad7239e97d83ea5ef5.tar.gz
talos-obmc-linux-bcabdef12da49878789464ad7239e97d83ea5ef5.zip
gpiolib: check descriptors validity before use
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> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/gpio/gpio-rdc321x.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud