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

Commit 3398241b authored by Mattia Dongili's avatar Mattia Dongili Committed by Matthew Garrett
Browse files

sony-laptop: fix return path when no ACPI buffer is allocated



The goto target location would still try to free a buffer that was
never allocated.

Signed-off-by: default avatarMattia Dongili <malattia@linux.it>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent d6f15ed8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1349,8 +1349,8 @@ static void sony_nc_rfkill_setup(struct acpi_device *device)

	device_enum = (union acpi_object *) buffer.pointer;
	if (!device_enum) {
		pr_err("No SN06 return object\n");
		goto out_no_enum;
		pr_err("No SN06 return object.");
		return;
	}
	if (device_enum->type != ACPI_TYPE_BUFFER) {
		pr_err("Invalid SN06 return object 0x%.2x\n",