diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-07-27 13:29:31 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-08-13 16:06:40 +0200 |
commit | 32924c76b0cbc67aa4cf0741f7bc6c37f097aaf3 (patch) | |
tree | ac81012aeb76c50918a59aed8c4dcac85561ded6 /drivers/memory | |
parent | 853520fa96511e4a49942d2cba34a329528c7e41 (diff) | |
download | op-kernel-dev-32924c76b0cbc67aa4cf0741f7bc6c37f097aaf3.zip op-kernel-dev-32924c76b0cbc67aa4cf0741f7bc6c37f097aaf3.tar.gz |
iommu/tegra-smmu: Use kcalloc() to allocate counter array
Use kcalloc() to allocate the use-counter array for the page directory
entries/page tables. Using kcalloc() allows us to be provided with
zero-initialised memory from the allocators, rather than initialising
it ourselves.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/memory')
0 files changed, 0 insertions, 0 deletions