Skip to content

Commit 06a3f13

Browse files
Taemin Haavagin
authored andcommitted
zdtm/cow00: fix typo
The condition meant to check fd2 instead of fd1, which is checked in line 24. Signed-off-by: Taemin Ha <[email protected]> Signed-off-by: Andrei Vagin <[email protected]>
1 parent 9e05b65 commit 06a3f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/zdtm/static/cow00.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static int is_cow(void *addr, pid_t p1, pid_t p2)
2929

3030
snprintf(buf, sizeof(buf), "/proc/%d/pagemap", p2);
3131
fd2 = open(buf, O_RDONLY);
32-
if (fd1 < 0) {
32+
if (fd2 < 0) {
3333
pr_perror("Unable to open file %s", buf);
3434
return -1;
3535
}

0 commit comments

Comments
 (0)