]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (coretemp) Fix oops on driver load
authorJean Delvare <khali@linux-fr.org>
Thu, 1 Dec 2011 16:21:28 +0000 (17:21 +0100)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 16 Dec 2011 01:14:27 +0000 (17:14 -0800)
commitac89bcf30d902ee2e0a5d16c44dcba97e2bf75f2
tree3f17292ecca0d3a48cc92af5c33cd4bd8b767064
parent2dc033c35773e732491d98c570ab976c04f22b26
hwmon: (coretemp) Fix oops on driver load

This is for stable kernel branch 3.0 only. Previous and later versions
have different code paths and are not affected by this bug.

If the CPU microcode is too old, the coretemp driver won't work. But
instead of failing gracefully, it currently oops. Check for NULL
platform device data to avoid this.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/coretemp.c