diff --git a/drivers/base/regmap/qti-regmap-debugfs.c b/drivers/base/regmap/qti-regmap-debugfs.c index 515ac7859678..f4efff62ab91 100644 --- a/drivers/base/regmap/qti-regmap-debugfs.c +++ b/drivers/base/regmap/qti-regmap-debugfs.c @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright 2011 Wolfson Microelectronics plc - * Copyright (c) 2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2020-2021, The Linux Foundation. All rights reserved. */ #include @@ -289,7 +289,7 @@ static ssize_t regmap_read_debugfs(struct regmap *map, unsigned int from, if (count > (PAGE_SIZE << (MAX_ORDER - 1))) count = PAGE_SIZE << (MAX_ORDER - 1); - buf = kmalloc(count, GFP_KERNEL); + buf = kzalloc(count, GFP_KERNEL); if (!buf) return -ENOMEM;