Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ACPICA: Fix a sscanf format string.

ACPICA commit 84f3569db7accc576ace2dae81d101467254fe9d

Was using %d instead of properly using %u.

This patch only affects acpidump tool.

Link: https://github.com/acpica/acpica/commit/84f3569d
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

authored by

Bob Moore and committed by
Rafael J. Wysocki
81ed793d 938ed102

+1 -1
+1 -1
tools/power/acpi/os_specific/service_layers/oslinuxtbl.c
··· 1156 1156 /* Extract instance number */ 1157 1157 1158 1158 if (isdigit((int)filename[ACPI_NAME_SIZE])) { 1159 - sscanf(&filename[ACPI_NAME_SIZE], "%d", instance); 1159 + sscanf(&filename[ACPI_NAME_SIZE], "%u", instance); 1160 1160 } else if (strlen(filename) != ACPI_NAME_SIZE) { 1161 1161 return (AE_BAD_SIGNATURE); 1162 1162 } else {