Skip to content

Commit 79a6b55

Browse files
rafaelmsoaressmb49
authored andcommitted
vfio: platform: Do not pass return buffer to ACPI _RST method
BugLink: https://bugs.launchpad.net/bugs/2003914 [ Upstream commit e67e070 ] The ACPI _RST method has no return value, there's no need to pass a return buffer to acpi_evaluate_object(). Fixes: d30daa3 ("vfio: platform: call _RST method when using ACPI") Signed-off-by: Rafael Mendonca <[email protected]> Reviewed-by: Eric Auger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]> Signed-off-by: Sasha Levin <[email protected]> Signed-off-by: Kamal Mostafa <[email protected]> Signed-off-by: Stefan Bader <[email protected]>
1 parent 76654aa commit 79a6b55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/vfio/platform/vfio_platform_common.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,11 @@ static int vfio_platform_acpi_call_reset(struct vfio_platform_device *vdev,
7272
const char **extra_dbg)
7373
{
7474
#ifdef CONFIG_ACPI
75-
struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL };
7675
struct device *dev = vdev->device;
7776
acpi_handle handle = ACPI_HANDLE(dev);
7877
acpi_status acpi_ret;
7978

80-
acpi_ret = acpi_evaluate_object(handle, "_RST", NULL, &buffer);
79+
acpi_ret = acpi_evaluate_object(handle, "_RST", NULL, NULL);
8180
if (ACPI_FAILURE(acpi_ret)) {
8281
if (extra_dbg)
8382
*extra_dbg = acpi_format_exception(acpi_ret);

0 commit comments

Comments
 (0)