Skip to content

Commit 45bbbbe

Browse files
miray-sbrafaeljw
authored andcommitted
ACPICA: cast the result of the pointer difference to u32
Altnatively we could declare aml_length as acpi_size, but then one would need to cast at the assignment for method_obj->method.aml_length ACPICA commit 72805936603fcf84e98f1b89bf99b5101af27fb8 Link: acpica/acpica@72805936 Signed-off-by: Sven Barth <[email protected]> Signed-off-by: Bob Moore <[email protected]> Signed-off-by: Erik Kaneda <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent 464fa2b commit 45bbbbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/acpi/acpica/nsxfname.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ acpi_status acpi_install_method(u8 *buffer)
516516

517517
method_flags = *parser_state.aml++;
518518
aml_start = parser_state.aml;
519-
aml_length = ACPI_PTR_DIFF(parser_state.pkg_end, aml_start);
519+
aml_length = (u32)ACPI_PTR_DIFF(parser_state.pkg_end, aml_start);
520520

521521
/*
522522
* Allocate resources up-front. We don't want to have to delete a new

0 commit comments

Comments
 (0)