]> git.karo-electronics.de Git - karo-tx-linux.git/commit
If dmi_get_system_info() returns NULL, pch_phub_probe() will dereferencea
authorAlexander Stein <alexander.stein@systec-electronic.com>
Sat, 16 Jul 2011 13:30:42 +0000 (23:30 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:04:39 +0000 (15:04 +1000)
commit42c760eaba951255004dae0fdc0e79d1ce024ebf
treee6e749049ac7a83972d338bdf75a07b219976aeb
parent3c98f49cda5b5a6f1800ae0379fba2f1a42c4430
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>
drivers/misc/pch_phub.c