diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index 970a15487..5ab54ce93 100644 --- a/lib/mm/memlock.c +++ b/lib/mm/memlock.c @@ -136,7 +136,7 @@ static int _maps_line(struct cmd_context *cmd, lvmlock_t lock, } /* skip ---p, select with r,w,x */ - if (fr != 'r' && fw != 'w' && fx != 'x') + if (fr != 'r') return 1; /* always ignored areas */