All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] syscalls/rmdir02: Use tst_get_bad_addr()
@ 2018-03-23 11:42 yang xu
  2018-03-26 12:52 ` Petr Vorel
  0 siblings, 1 reply; 2+ messages in thread
From: yang xu @ 2018-03-23 11:42 UTC (permalink / raw)
  To: ltp

Signed-off-by: yang xu <xuyang.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/rmdir/rmdir02.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/rmdir/rmdir02.c b/testcases/kernel/syscalls/rmdir/rmdir02.c
index e12f3ee..55123c7 100644
--- a/testcases/kernel/syscalls/rmdir/rmdir02.c
+++ b/testcases/kernel/syscalls/rmdir/rmdir02.c
@@ -98,9 +98,7 @@ static void setup(void)
 
 	for (i = 0; i < ARRAY_SIZE(tcases); i++) {
 		if (tcases[i].exp_errno == EFAULT) {
-			tcases[i].dir = SAFE_MMAP(0, 1, PROT_NONE,
-			                          MAP_PRIVATE | MAP_ANONYMOUS,
-			                          0, 0);
+			tcases[i].dir = tst_get_bad_addr(NULL);
 		}
 	}
 
-- 
1.8.3.1




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [LTP] [PATCH] syscalls/rmdir02: Use tst_get_bad_addr()
  2018-03-23 11:42 [LTP] [PATCH] syscalls/rmdir02: Use tst_get_bad_addr() yang xu
@ 2018-03-26 12:52 ` Petr Vorel
  0 siblings, 0 replies; 2+ messages in thread
From: Petr Vorel @ 2018-03-26 12:52 UTC (permalink / raw)
  To: ltp

Hi,

> Signed-off-by: yang xu <xuyang.jy@cn.fujitsu.com>
> ---
>  testcases/kernel/syscalls/rmdir/rmdir02.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

> diff --git a/testcases/kernel/syscalls/rmdir/rmdir02.c b/testcases/kernel/syscalls/rmdir/rmdir02.c
> index e12f3ee..55123c7 100644
> --- a/testcases/kernel/syscalls/rmdir/rmdir02.c
> +++ b/testcases/kernel/syscalls/rmdir/rmdir02.c
> @@ -98,9 +98,7 @@ static void setup(void)

>  	for (i = 0; i < ARRAY_SIZE(tcases); i++) {
>  		if (tcases[i].exp_errno == EFAULT) {
> -			tcases[i].dir = SAFE_MMAP(0, 1, PROT_NONE,
> -			                          MAP_PRIVATE | MAP_ANONYMOUS,
> -			                          0, 0);
> +			tcases[i].dir = tst_get_bad_addr(NULL);
>  		}
>  	}

Pushed, thanks!


Kind regards,
Petr

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-26 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-23 11:42 [LTP] [PATCH] syscalls/rmdir02: Use tst_get_bad_addr() yang xu
2018-03-26 12:52 ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.