]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Fixup check for invalid scratch register
authorJayachandran C <jchandra@broadcom.com>
Tue, 11 Jun 2013 14:41:36 +0000 (14:41 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 13 Jun 2013 15:46:43 +0000 (17:46 +0200)
commit0e6ecc1a9aa7cbf991d9711a12cae2b4853ef718
treef868411dd23f3621dad9efb1871345b021151f74
parent7777b9395b77664cb736b941f95fb8f656edd111
MIPS: Fixup check for invalid scratch register

The invalid value for scratch register is -1, so update the checks of
the form (scratch_reg > 0) to be (scratch_reg >= 0).  This will fix
the case in Netlogic XLP where the scratch_reg can be 0.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5444/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mm/tlbex.c