omap: Ptr "isr_reg" tracked as NULL was dereferenced
authorEvgeny Kuznetsov <ext-eugeny.kuznetsov@nokia.com>
Wed, 8 Dec 2010 00:25:40 +0000 (16:25 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 8 Dec 2010 00:25:40 +0000 (16:25 -0800)
commitb1cc4c55c69efed3ebbb2a13e4c77a2a1a4a6bc9
tree5aff7ab2977693735d0830f2cfe48e3fa944d969
parentbe40f7a3d7b53c1a44e11b376b4a395d6b91f58d
omap: Ptr "isr_reg" tracked as NULL was dereferenced

Value of "isr_reg" pointer is depend on configuration and GPIO method.
Potentially it may have NULL value and it is dereferenced later
in code. Warning and exit from function are added in this case.

Signed-off-by: Evgeny Kuznetsov <EXT-Eugeny.Kuznetsov@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/gpio.c