Commit fc0ccfceb8aa6800040ba4f37a36ee306aa71c9f

Authored by Cesar Eduardo Barros
Committed by Linus Torvalds
1 parent 485d527686

arch/um: fix kunmap_atomic() call in skas/uaccess.c

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

arch/um/kernel/skas/uaccess.c
... ... @@ -81,7 +81,7 @@
81 81  
82 82 current->thread.fault_catcher = NULL;
83 83  
84   - kunmap_atomic(page, KM_UML_USERCOPY);
  84 + kunmap_atomic((void *)addr, KM_UML_USERCOPY);
85 85  
86 86 return n;
87 87 }