Skip to content

Commit

Permalink
arch/um: fix kunmap_atomic() call in skas/uaccess.c
Browse files Browse the repository at this point in the history
kunmap_atomic() takes a pointer to within the page, not the struct page.

Signed-off-by: Cesar Eduardo Barros <cesarb@cesarb.net>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Cesar Eduardo Barros authored and Linus Torvalds committed Jun 4, 2010
1 parent 485d527 commit fc0ccfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/kernel/skas/uaccess.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static int do_op_one_page(unsigned long addr, int len, int is_write,

current->thread.fault_catcher = NULL;

kunmap_atomic(page, KM_UML_USERCOPY);
kunmap_atomic((void *)addr, KM_UML_USERCOPY);

return n;
}
Expand Down

0 comments on commit fc0ccfc

Please sign in to comment.