]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Dont check for pfn_valid() in uaccess_pt.c
authorGerald Schaefer <gerald.schaefer@de.ibm.com>
Wed, 18 Mar 2009 12:27:35 +0000 (13:27 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 18 Mar 2009 12:28:13 +0000 (13:28 +0100)
commitc469dd7a7cca2a4b783ef37bf61dababde24fc24
tree1aa69da137c2be0a93e9e639750afe065dbdf98a
parent4271eb0b9c67a92bed3391fe3ae28cb59e7ce8b9
[S390] Dont check for pfn_valid() in uaccess_pt.c

pfn_valid() actually checks for a valid struct page and not for a
valid pfn. Using xip mappings w/o struct pages, this will result in
-EFAULT returned by the (page table walk) user copy functions,
even though there is valid memory. Those user copy functions don't
need a struct page, so this patch just removes the pfn_valid() check.

Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/uaccess_pt.c