resource: crashing bug on incorrect input.
commit380826b0379bcd82aa7997ccb3dff50e956c275c
authorDan Carpenter <error27@gmail.com>
Sun, 1 Aug 2010 21:45:02 +0000 (1 23:45 +0200)
committerDan Carpenter <error27@gmail.com>
Sun, 1 Aug 2010 21:45:02 +0000 (1 23:45 +0200)
tree679475ebb65b7cbfd2059e06a7606556fe9a3118
parent2c36c7b63c1a6bffabc0ecd04c485aa0f1143025
resource: crashing bug on incorrect input.

In my test program I had an "ioremap()" with no argument and it made smatch
segfault.

Signed-off-by: Dan Carpenter <error27@gmail.com>
check_resource_size.c