Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f897484 authored by Matthew Garrett's avatar Matthew Garrett
Browse files

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: default avatarMatthew Garrett <matthew.garrett@nebula.com>
parent f7cb13b3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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))