Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53b1090f authored by Seemanta Dutta's avatar Seemanta Dutta Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Fix allocation size in memory manager



Ensure that correct bitmap size is passed during
initializaiton of memory manager.

CRs-Fixed: 2044670
Change-Id: I8fe3f0bfeaee29c799d2cc302ad9f7c00c8fd938
Signed-off-by: default avatarSeemanta Dutta <seemanta@codeaurora.org>
parent 56c0a94b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -97,7 +97,7 @@ int cam_mem_mgr_init(void)
	}

	bitmap_size = BITS_TO_LONGS(CAM_MEM_BUFQ_MAX) * sizeof(long);
	tbl.bitmap = kzalloc(sizeof(bitmap_size), GFP_KERNEL);
	tbl.bitmap = kzalloc(bitmap_size, GFP_KERNEL);
	if (!tbl.bitmap) {
		rc = -ENOMEM;
		goto bitmap_fail;