summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utcache.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2017-04-26 16:19:10 +0800
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-04-27 00:31:01 +0200
commitc8e8ab1e4c1e0879f21e39504bf7fc01c0b5865f (patch)
tree898be7b5e8b75a729e864645b575f259ed3c1881 /drivers/acpi/acpica/utcache.c
parentbee900db6d4d9822d8ce6b44f77d23a3c0aa3131 (diff)
downloadblackbird-op-linux-c8e8ab1e4c1e0879f21e39504bf7fc01c0b5865f.tar.gz
blackbird-op-linux-c8e8ab1e4c1e0879f21e39504bf7fc01c0b5865f.zip
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 <robert.moore@intel.com> Signed-off-by: Lv Zheng <lv.zheng@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/utcache.c')
-rw-r--r--drivers/acpi/acpica/utcache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpica/utcache.c b/drivers/acpi/acpica/utcache.c
index 11c7f72f2d56..531493306dee 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);
}
OpenPOWER on IntegriCloud