diff options
author | Dan Carpenter <error27@gmail.com> | 2010-04-27 23:12:03 +0200 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-04-28 08:50:01 +0200 |
commit | 3913fd5ed42c990c20036ef5c90e7987a9dd1ad1 (patch) | |
tree | a3f4236246c3ffd65d71571c1f41615c3f4e24fc /drivers/serial/8250_mca.c | |
parent | Linux 2.6.34-rc5 (diff) | |
download | linux-3913fd5ed42c990c20036ef5c90e7987a9dd1ad1.tar.xz linux-3913fd5ed42c990c20036ef5c90e7987a9dd1ad1.zip |
gpio: potential null dereference
Smatch found a potential null dereference in gpio_setup_irq(). The
"pdesc" variable is allocated with idr_find() that can return NULL. If
gpio_setup_irq() is called with 0 as gpio_flags and "pdesc" is null, it
would OOPs here.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/serial/8250_mca.c')
0 files changed, 0 insertions, 0 deletions