From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] syscalls/rmdir02: Use tst_get_bad_addr()
Date: Mon, 26 Mar 2018 14:52:26 +0200 [thread overview]
Message-ID: <20180326125226.GA8456@x230> (raw)
In-Reply-To: <1521805377-6825-1-git-send-email-xuyang.jy@cn.fujitsu.com>
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
prev parent reply other threads:[~2018-03-26 12:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-23 11:42 [LTP] [PATCH] syscalls/rmdir02: Use tst_get_bad_addr() yang xu
2018-03-26 12:52 ` Petr Vorel [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180326125226.GA8456@x230 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox