From 2d799633c994ee44f4aca740c61be24daf573b8c Mon Sep 17 00:00:00 2001 From: Jamie Gennis Date: Mon, 9 Aug 2010 12:46:58 -0700 Subject: [PATCH] Allow multiple pmem master mmap()s. Signed-off-by: Jamie Gennis Change-Id: Icbe619c92e0ebb391f0a93f81937705452a67d87 --- drivers/misc/pmem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/pmem.c b/drivers/misc/pmem.c index 7f3b53217560..890831e2deb7 100644 --- a/drivers/misc/pmem.c +++ b/drivers/misc/pmem.c @@ -594,8 +594,7 @@ static int pmem_mmap(struct file *file, struct vm_area_struct *vma) down_write(&data->sem); /* check this file isn't already mmaped, for submaps check this file * has never been mmaped */ - if ((data->flags & PMEM_FLAGS_MASTERMAP) || - (data->flags & PMEM_FLAGS_SUBMAP) || + if ((data->flags & PMEM_FLAGS_SUBMAP) || (data->flags & PMEM_FLAGS_UNSUBMAP)) { #if PMEM_DEBUG printk(KERN_ERR "pmem: you can only mmap a pmem file once, " -- 2.34.1