Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277338
b: refs/heads/master
c: 301b195
h: refs/heads/master
v: v3
  • Loading branch information
Nelson Elhage authored and Arnaldo Carvalho de Melo committed Dec 20, 2011
1 parent afee8ad commit d218290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6581f6e35f7d0338f699fce660adb48e863f2b59
refs/heads/master: 301b195db179241da8be25f345f3c4e64960f1d5
4 changes: 3 additions & 1 deletion trunk/tools/perf/util/evlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,10 @@ static int __perf_evlist__mmap(struct perf_evlist *evlist,
evlist->mmap[idx].mask = mask;
evlist->mmap[idx].base = mmap(NULL, evlist->mmap_len, prot,
MAP_SHARED, fd, 0);
if (evlist->mmap[idx].base == MAP_FAILED)
if (evlist->mmap[idx].base == MAP_FAILED) {
evlist->mmap[idx].base = NULL;
return -1;
}

perf_evlist__add_pollfd(evlist, fd);
return 0;
Expand Down

0 comments on commit d218290

Please sign in to comment.