]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/usb/host/xhci.c
usb: host: xhci: Fix Null pointer dereferencing with 71c731a for non-x86 systems
[karo-tx-linux.git] / drivers / usb / host / xhci.c
index 9322aae55a324895992532bdaca48c4a79cd5a66..f5c0f388e3e38f003fb76a9d57e6cddec52f2378 100644 (file)
@@ -463,6 +463,8 @@ static bool compliance_mode_recovery_timer_quirk_check(void)
 
        dmi_product_name = dmi_get_system_info(DMI_PRODUCT_NAME);
        dmi_sys_vendor = dmi_get_system_info(DMI_SYS_VENDOR);
+       if (!dmi_product_name || !dmi_sys_vendor)
+               return false;
 
        if (!(strstr(dmi_sys_vendor, "Hewlett-Packard")))
                return false;