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

Commit b7e04c58 authored by Kamal Agrawal's avatar Kamal Agrawal Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Change data type for ret in kgsl_mmap



ret variable is meant to store the return value which can be negative.
Change the data type from unsigned int to int.

Change-Id: I6ea46c40d22dfc6474bbfda9b0e7791d39798520
Signed-off-by: default avatarKamal Agrawal <kamaagra@codeaurora.org>
parent 1ca91eb8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4175,12 +4175,13 @@ kgsl_get_unmapped_area(struct file *file, unsigned long addr,

static int kgsl_mmap(struct file *file, struct vm_area_struct *vma)
{
	unsigned int ret, cache;
	unsigned int cache;
	unsigned long vma_offset = vma->vm_pgoff << PAGE_SHIFT;
	struct kgsl_device_private *dev_priv = file->private_data;
	struct kgsl_process_private *private = dev_priv->process_priv;
	struct kgsl_mem_entry *entry = NULL;
	struct kgsl_device *device = dev_priv->device;
	int ret;

	/* Handle leagacy behavior for memstore */