提交 9f897484 编写于 作者: M Matthew Garrett

asus-laptop: Fix potential invalid pointer dereference

The 0-day build testing backend noticed that a string could be dereferenced
without validation. Fix that.
Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
上级 f7cb13b3
......@@ -1743,7 +1743,7 @@ static int asus_laptop_get_info(struct asus_laptop *asus)
return -ENOMEM;
}
if (*string)
if (string)
pr_notice(" %s model detected\n", string);
if (!acpi_check_handle(asus->handle, METHOD_WL_STATUS, NULL))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册