syscalls/rmdir02: Use tst_get_bad_addr()
PATCH 1/1 syscalls/rmdir02: Use tst_get_bad_addr()
Signed-off-by yang xu <[email protected]>
--- testcases/kernel/syscalls/rmdir/rmdir02.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
testcases/kernel/syscalls/rmdir/rmdir02.c +1 -3
@@ -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 ); } }
Signature · 1 line
1.8.3.1
PATCH 1/1 syscalls/rmdir02: Use tst_get_bad_addr()
Hi,
Quoted 10 lines
Signed-off-by yang xu <[email protected]>--- testcases/kernel/syscalls/rmdir/rmdir02.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)testcases/kernel/syscalls/rmdir/rmdir02.c +0
-0
testcases/kernel/syscalls/rmdir/rmdir02.c static void setup(void) · line 103
Quoted 9 lines
testcases/kernel/syscalls/rmdir/rmdir02.c +1
-3@@ -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