msm: kgsl: Fix size for device memstore allocation

Change prevents IOMMU pagefaults which may occur when
indexing reaches 4096/sizeof(kgsl_devmemstore) number
of contexts

CRs-Fixed: 370594
Change-Id: If726c2a1fcf7667b062e890453a71e95f5417c60
Signed-off-by: Richard Ruigrok <rruigrok@codeaurora.org>
This commit is contained in:
Richard Ruigrok
2012-06-14 14:22:05 -07:00
committed by Stephen Boyd
parent acc8fffadf
commit 6f3bec33a8

View File

@@ -2523,7 +2523,7 @@ int kgsl_device_platform_probe(struct kgsl_device *device)
}
status = kgsl_allocate_contiguous(&device->memstore,
sizeof(struct kgsl_devmemstore));
KGSL_MEMSTORE_SIZE);
if (status != 0) {
KGSL_DRV_ERR(device, "kgsl_allocate_contiguous failed %d\n",