diff options
Diffstat (limited to 'drivers/platform/x86/wmi.c')
-rw-r--r-- | drivers/platform/x86/wmi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index bea35be68706..7b26b6ccf1a0 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c | |||
@@ -768,7 +768,10 @@ static int wmi_dev_match(struct device *dev, struct device_driver *driver) | |||
768 | struct wmi_block *wblock = dev_to_wblock(dev); | 768 | struct wmi_block *wblock = dev_to_wblock(dev); |
769 | const struct wmi_device_id *id = wmi_driver->id_table; | 769 | const struct wmi_device_id *id = wmi_driver->id_table; |
770 | 770 | ||
771 | while (id->guid_string) { | 771 | if (id == NULL) |
772 | return 0; | ||
773 | |||
774 | while (*id->guid_string) { | ||
772 | uuid_le driver_guid; | 775 | uuid_le driver_guid; |
773 | 776 | ||
774 | if (WARN_ON(uuid_le_to_bin(id->guid_string, &driver_guid))) | 777 | if (WARN_ON(uuid_le_to_bin(id->guid_string, &driver_guid))) |