Skip to content

Commit

Permalink
ACPICA: Local cache support: Allow small cache objects
Browse files Browse the repository at this point in the history
ACPICA commit 9c54b8bbd483421ef2fef5225c00f1655b4a491c

Remove apparently arbitrary restriction on the size of the cache
objects to 16 (in acpi_os_create_cache). Now, the input object
size must be simply non-zero.

Link: https://github.com/acpica/acpica/commit/9c54b8bb
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>
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Apr 26, 2017
1 parent bee900d commit c8e8ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/acpica/utcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ acpi_os_create_cache(char *cache_name,

ACPI_FUNCTION_ENTRY();

if (!cache_name || !return_cache || (object_size < 16)) {
if (!cache_name || !return_cache || !object_size) {
return (AE_BAD_PARAMETER);
}

Expand Down

0 comments on commit c8e8ab1

Please sign in to comment.