From: Dan Carpenter Date: Tue, 27 Apr 2010 21:12:03 +0000 (-0700) Subject: gpio: potential null dereference X-Git-Tag: v2.6.34-rc7~41^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3913fd5ed42c990c20036ef5c90e7987a9dd1ad1;p=pandora-kernel.git 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 Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Grant Likely --- Reading git-diff-tree failed