drivers/misc/pch_phub.c: don't oops if dmi_get_system_info returns NULL
authorAlexander Stein <alexander.stein@systec-electronic.com>
Tue, 26 Jul 2011 00:11:54 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:07 +0000 (20:57 -0700)
commit2b934c6236983392d01bef22e43af3051cac16f5
treec7901f1c9392f8ebb99f0cfda871863e0c2d5500
parent90b03f5052be92ab0ba0aa36abcf33a207706866
drivers/misc/pch_phub.c: don't oops if dmi_get_system_info returns NULL

If dmi_get_system_info() returns NULL, pch_phub_probe() will dereferencea
a zero pointer.

This oops was observed on an Atom based board which has no BIOS, but a
bootloder which doesn't privde DMI data.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
Cc: Tomoya MORINAGA <tomoya-linux@dsn.okisemi.com>
Cc: Greg KH <gregkh@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/misc/pch_phub.c