Title: [7862] trunk/mm/nommu.c: Fix bug [#5706].
- Revision
- 7862
- Author
- jiez
- Date
- 2009-11-24 09:59:10 -0500 (Tue, 24 Nov 2009)
Log Message
Fix bug [#5706].
Restore my fix which was lost during updating to linux-2.6.30.
Flush icache when write to user process space.
Modified Paths
Diff
Modified: trunk/mm/nommu.c (7861 => 7862)
--- trunk/mm/nommu.c 2009-11-24 10:20:41 UTC (rev 7861)
+++ trunk/mm/nommu.c 2009-11-24 14:59:10 UTC (rev 7862)
@@ -1950,9 +1950,11 @@
/* only read or write mappings where it is permitted */
if (write && vma->vm_flags & VM_MAYWRITE)
- len -= copy_to_user((void *) addr, buf, len);
+ copy_to_user_page(vma, NULL, NULL,
+ (void *) addr, buf, len);
else if (!write && vma->vm_flags & VM_MAYREAD)
- len -= copy_from_user(buf, (void *) addr, len);
+ copy_from_user_page(vma, NULL, NULL,
+ buf, (void *) addr, len);
else
len = 0;
} else {
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits