* [LTP] [PATCH] bugfix for epoll_ctl/epoll_ctl04.c
@ 2022-03-24 6:41 Wang Kunfeng via ltp
2022-03-24 13:25 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Wang Kunfeng via ltp @ 2022-03-24 6:41 UTC (permalink / raw)
To: ltp
Add SAFE_CLOSE(new_epfd) to free fd
Signed-off-by: Wang Kunfeng <threefifteen.wangkunfeng@huawei.com>
---
testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c
index fce754e96..5173755f7 100644
--- a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c
+++ b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl04.c
@@ -60,6 +60,7 @@ static void verify_epoll_ctl(void)
events.data.fd = epfd;
TST_EXP_FAIL(epoll_ctl(new_epfd, EPOLL_CTL_ADD, epfd, &events), EINVAL,
"epoll_clt(..., EPOLL_CTL_ADD, ...) with number of nesting is 5");
+ SAFE_CLOSE(new_epfd);
}
static struct tst_test test = {
2.17.1
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [LTP] [PATCH] bugfix for epoll_ctl/epoll_ctl04.c
2022-03-24 6:41 [LTP] [PATCH] bugfix for epoll_ctl/epoll_ctl04.c Wang Kunfeng via ltp
@ 2022-03-24 13:25 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2022-03-24 13:25 UTC (permalink / raw)
To: Wang Kunfeng; +Cc: ltp
Hi!
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-24 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 6:41 [LTP] [PATCH] bugfix for epoll_ctl/epoll_ctl04.c Wang Kunfeng via ltp
2022-03-24 13:25 ` Cyril Hrubis
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.