]> Pileus Git - ~andy/linux/blobdiff - tools/perf/builtin-record.c
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
[~andy/linux] / tools / perf / builtin-record.c
index 3d051b9cf25ff18790edbb1cd33a7f644ece2dc0..89a5ddcd1ded753e6835c39935989d4c96ac2fdd 100644 (file)
@@ -219,7 +219,7 @@ static pid_t pid_synthesize_comm_event(pid_t pid, int full)
        snprintf(filename, sizeof(filename), "/proc/%d/status", pid);
 
        fp = fopen(filename, "r");
-       if (fd == NULL) {
+       if (fp == NULL) {
                /*
                 * We raced with a task exiting - just return:
                 */