Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250869
b: refs/heads/master
c: bb005a5
h: refs/heads/master
i:
  250867: 8c2e73b
v: v3
  • Loading branch information
Namhyung Kim authored and Linus Torvalds committed May 25, 2011
1 parent 91e6278 commit 7b6d1f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 7223bb4a829628bdf37d544ed4363d99bac1ade6
refs/heads/master: bb005a59e08733bb416126dc184f73120fc6366b
6 changes: 3 additions & 3 deletions trunk/mm/nommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1376,15 +1376,15 @@ unsigned long do_mmap_pgoff(struct file *file,
if (capabilities & BDI_CAP_MAP_DIRECT) {
addr = file->f_op->get_unmapped_area(file, addr, len,
pgoff, flags);
if (IS_ERR((void *) addr)) {
if (IS_ERR_VALUE(addr)) {
ret = addr;
if (ret != (unsigned long) -ENOSYS)
if (ret != -ENOSYS)
goto error_just_free;

/* the driver refused to tell us where to site
* the mapping so we'll have to attempt to copy
* it */
ret = (unsigned long) -ENODEV;
ret = -ENODEV;
if (!(capabilities & BDI_CAP_MAP_COPY))
goto error_just_free;

Expand Down

0 comments on commit 7b6d1f5

Please sign in to comment.