]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: page_table_realloc returns failure
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Thu, 31 Oct 2013 09:01:16 +0000 (10:01 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 31 Oct 2013 15:52:58 +0000 (16:52 +0100)
commit0dc6b2d111b1bd0f3115aa46c7d2bffadc6d4503
treea650e4ff8561174693a8ed19ccc97932b1883d60
parentadba98760d39df27537828e745b02c86f253c2dc
s390/mm: page_table_realloc returns failure

There is a possible race between setting has_pgste and reallocation of the
page_table, change the order to fix this.
Also page_table_alloc_pgste can fail, in that case we need to backpropagte this
as -ENOMEM to the caller of page_table_realloc.

Based on a patch by Christian Borntraeger <borntraeger@de.ibm.com>.

Reviewed-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pgtable.c