* [LTP] [PATCH] syscalls/creat06: Fix the use of unassigned variable
@ 2016-10-31 7:29 Guangwen Feng
2016-10-31 9:04 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Guangwen Feng @ 2016-10-31 7:29 UTC (permalink / raw)
To: ltp
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
---
testcases/kernel/syscalls/creat/creat06.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/creat/creat06.c b/testcases/kernel/syscalls/creat/creat06.c
index 165c1de..9c60fd0 100644
--- a/testcases/kernel/syscalls/creat/creat06.c
+++ b/testcases/kernel/syscalls/creat/creat06.c
@@ -80,7 +80,6 @@ static void bad_addr_setup(int);
static struct passwd *ltpuser;
static char long_name[PATH_MAX+2];
-static const char *device;
static int mount_flag;
static struct test_case_t {
@@ -173,8 +172,10 @@ static void test6_cleanup(void)
static void cleanup(void)
{
- if (mount_flag && tst_umount("mntpoint") < 0)
- tst_brk(TBROK | TERRNO, "umount device:%s failed", device);
+ if (mount_flag && tst_umount("mntpoint") < 0) {
+ tst_brk(TBROK | TERRNO, "umount device:%s failed",
+ tst_device->dev);
+ }
}
static struct tst_test test = {
--
1.8.4.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] syscalls/creat06: Fix the use of unassigned variable
2016-10-31 7:29 [LTP] [PATCH] syscalls/creat06: Fix the use of unassigned variable Guangwen Feng
@ 2016-10-31 9:04 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2016-10-31 9:04 UTC (permalink / raw)
To: ltp
Hi!
Good catch, pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-31 9:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-31 7:29 [LTP] [PATCH] syscalls/creat06: Fix the use of unassigned variable Guangwen Feng
2016-10-31 9:04 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox