mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-20 15:03:58 +00:00
580.94.06
This commit is contained in:
@@ -737,8 +737,6 @@ static NV_STATUS nv_acpi_evaluate_dsm_method(
|
||||
|
||||
rmStatus = nv_acpi_extract_object(dsm, pOutData, *pSize, &data_size);
|
||||
*pSize = data_size;
|
||||
|
||||
kfree(output.pointer);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -751,6 +749,7 @@ static NV_STATUS nv_acpi_evaluate_dsm_method(
|
||||
"NVRM: %s: DSM data invalid!\n", __FUNCTION__);
|
||||
}
|
||||
|
||||
kfree(output.pointer);
|
||||
return rmStatus;
|
||||
}
|
||||
|
||||
@@ -1183,6 +1182,7 @@ NvBool nv_acpi_power_resource_method_present(
|
||||
(object_package->package.count != 0x1))
|
||||
{
|
||||
nv_printf(NV_DBG_ERRORS,"NVRM: _PR3 object is not a type 'package'\n");
|
||||
kfree(buf.pointer);
|
||||
return NV_FALSE;
|
||||
}
|
||||
|
||||
@@ -1194,8 +1194,10 @@ NvBool nv_acpi_power_resource_method_present(
|
||||
{
|
||||
nv_printf(NV_DBG_ERRORS,
|
||||
"NVRM: _PR3 object does not contain POWER Reference\n");
|
||||
kfree(buf.pointer);
|
||||
return NV_FALSE;
|
||||
}
|
||||
kfree(buf.pointer);
|
||||
return NV_TRUE;
|
||||
}
|
||||
|
||||
@@ -1325,6 +1327,7 @@ static acpi_status nv_acpi_find_battery_info(
|
||||
if (object_package->type != ACPI_TYPE_PACKAGE)
|
||||
{
|
||||
nv_printf(NV_DBG_INFO, "NVRM: Battery method output is not package\n");
|
||||
kfree(buf.pointer);
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
@@ -1350,11 +1353,13 @@ static acpi_status nv_acpi_find_battery_info(
|
||||
if ((object_package->package.elements[battery_technology_offset].type != ACPI_TYPE_INTEGER) ||
|
||||
(object_package->package.elements[battery_technology_offset].integer.value != BATTERY_RECHARGABLE))
|
||||
{
|
||||
kfree(buf.pointer);
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
battery_present = NV_TRUE;
|
||||
|
||||
kfree(buf.pointer);
|
||||
/* Stop traversing acpi tree. */
|
||||
return AE_CTRL_TERMINATE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user