From: Bob Moore Date: Wed, 26 Apr 2017 08:19:10 +0000 (+0800) Subject: ACPICA: Local cache support: Allow small cache objects X-Git-Tag: v4.14-rc1~612^2~2^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8e8ab1e4c1e0879f21e39504bf7fc01c0b5865f;p=platform%2Fkernel%2Flinux-rpi3.git ACPICA: Local cache support: Allow small cache objects 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 Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/acpi/acpica/utcache.c b/drivers/acpi/acpica/utcache.c index 11c7f72..5314933 100644 --- a/drivers/acpi/acpica/utcache.c +++ b/drivers/acpi/acpica/utcache.c @@ -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); }