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

Commit cdfdc0a5 authored by Preeti Nagar's avatar Preeti Nagar Committed by Gerrit - the friendly Code Review server
Browse files

seemp: removing VM_RESERVED flag



Removing VM_RESERVED flag and replacing
it with VM_DONTEXPAND and VM_DONTDUMP.

Change-Id: I0dffdbc4751688c79612f961236f897f5c4fe83a
Signed-off-by: default avatarPreeti Nagar <pnagar@codeaurora.org>
parent 31c09dc0
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -22,10 +22,6 @@
#include "seemp_logk.h"
#include "seemp_ringbuf.h"

#ifndef VM_RESERVED
#define VM_RESERVED (VM_DONTEXPAND | VM_DONTDUMP)
#endif

#define MASK_BUFFER_SIZE 256
#define FOUR_MB 4
#define YEAR_BASE 1900
@@ -553,7 +549,7 @@ static int seemp_logk_mmap(struct file *filp,
		return -EIO;
	}

	vma->vm_flags |= VM_RESERVED | VM_SHARED;
	vma->vm_flags |= (VM_DONTEXPAND | VM_DONTDUMP) | VM_SHARED;
	vptr = (char *) slogk_dev->ring;
	ret = 0;