aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/acerhdf.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c
index 9226838c867f..6abd3f15dd85 100644
--- a/drivers/platform/x86/acerhdf.c
+++ b/drivers/platform/x86/acerhdf.c
@@ -524,6 +524,10 @@ static int acerhdf_check_hardware(void)
524 version = dmi_get_system_info(DMI_BIOS_VERSION); 524 version = dmi_get_system_info(DMI_BIOS_VERSION);
525 product = dmi_get_system_info(DMI_PRODUCT_NAME); 525 product = dmi_get_system_info(DMI_PRODUCT_NAME);
526 526
527 if (!vendor || !version || !product) {
528 pr_err("error getting hardware information\n");
529 return -EINVAL;
530 }
527 531
528 pr_info("Acer Aspire One Fan driver, v.%s\n", DRV_VER); 532 pr_info("Acer Aspire One Fan driver, v.%s\n", DRV_VER);
529 533