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

Commit 48efc39e authored by Harshitha Sai Neelati's avatar Harshitha Sai Neelati
Browse files

msm: kgsl: Fix datatype of count in kgsl_alloc_secure_pages



Change the data type of count in kgsl_alloc_secure_pages to
correctly handle the errors from kgsl_pool_alloc_pages.

Change-Id: Ib24c351304ab864d5884be8f8bddc7f74a487031
Signed-off-by: default avatarHarshitha Sai Neelati <hsaine@codeaurora.org>
parent 8be06407
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -934,7 +934,7 @@ static int kgsl_alloc_secure_pages(struct kgsl_device *device,
		struct kgsl_memdesc *memdesc, u64 size, u64 flags, u32 priv)
{
	struct page **pages;
	u32 count;
	int count;
	struct sg_table *sgt;
	int ret;