intel_ips: potential null dereference
authorDan Carpenter <error27@gmail.com>
Sat, 7 Aug 2010 22:01:12 +0000 (00:01 +0200)
committerMatthew Garrett <mjg@redhat.com>
Mon, 16 Aug 2010 15:54:29 +0000 (11:54 -0400)
commit52d7ee558d3babb4918eed6769f593adc1b6616e
tree89b54e76934e3d9c44fb8eb8e8647dc9a93350fd
parent2e0ee69c214a0197e1b081ffec9c409ab2a5f094
intel_ips: potential null dereference

There is a potential NULL dereference of "limits."  We can just return
NULL earlier to avoid it.  The caller already handles NULL returns.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_ips.c