Commit 057229f9efc7ebebd3ce0496195ed46df631f383

Authored by Ilpo Järvinen
Committed by Ralf Baechle
1 parent 326e2e1a59

[MIPS] Add missing braces to pte_mkyoung

Only the version pte_mkyoung for 36-bit pagetables on 32-bit hw was
affected and with this bug being around since November 29, 2004 there
is evidence to suport the assumption it was benign ;-)

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

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

include/asm-mips/pgtable.h
... ... @@ -239,9 +239,10 @@
239 239 static inline pte_t pte_mkyoung(pte_t pte)
240 240 {
241 241 pte.pte_low |= _PAGE_ACCESSED;
242   - if (pte.pte_low & _PAGE_READ)
  242 + if (pte.pte_low & _PAGE_READ) {
243 243 pte.pte_low |= _PAGE_SILENT_READ;
244 244 pte.pte_high |= _PAGE_SILENT_READ;
  245 + }
245 246 return pte;
246 247 }
247 248 #else