summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorShanker Donthineni <shankerd@codeaurora.org>2016-02-16 18:00:36 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-15 09:40:41 +0200
commit5e56ddc78f0e3669205ca50acee64fc6c75887b0 (patch)
tree8ef81c2ae574769de8d46bd3d3f095944ab8edec /lib/debugobjects.c
parent4a0c7f6afea7d76ce53ca1f9517c2f9ac9ea13ea (diff)
irqchip/gicv3-its: Avoid cache flush beyond ITS_BASERn memory size
commit 2eca0d6ceea1f108b2d3ac81fb34698c4fd41006 upstream. Function its_alloc_tables() maintains two local variables, "order" and and "alloc_size", to hold memory size that has been allocated to ITS_BASEn. We don't always refresh the variable alloc_size whenever value of the variable order changes, causing the following two problems. - Cache flush operation with size more than required. - Information reported by pr_info is not correct. Use a helper macro that converts page order to size in bytes instead of variable "alloc_size" to fix both the problems. Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions