From b81e185907ba597d6e3840c3a9506efc8c2dc03a Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Wed, 14 Feb 2018 13:11:11 -0800 Subject: [PATCH] ion_test.c: Fix c/p error in arg parse. Bug/Test: N/A Change-Id: Iad1ac3f057ed153429780242e138cec58e8ee764 --- libion/ion_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libion/ion_test.c b/libion/ion_test.c index b7d558354..f3874aefb 100644 --- a/libion/ion_test.c +++ b/libion/ion_test.c @@ -250,7 +250,7 @@ int main(int argc, char* argv[]) { case 'p': prot = 0; prot |= strstr(optarg, "MAP_PRIVATE") ? MAP_PRIVATE : 0; - prot |= strstr(optarg, "MAP_SHARED") ? MAP_PRIVATE : 0; + prot |= strstr(optarg, "MAP_SHARED") ? MAP_SHARED : 0; break; case 'f': alloc_flags = atol(optarg);