diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/mm/pmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c index 3c9bf5b5c36f..a06483076a41 100644 --- a/arch/sh/mm/pmb.c +++ b/arch/sh/mm/pmb.c | |||
@@ -77,7 +77,7 @@ static struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn, | |||
77 | if (pos < 0) | 77 | if (pos < 0) |
78 | return ERR_PTR(pos); | 78 | return ERR_PTR(pos); |
79 | } else { | 79 | } else { |
80 | if (test_bit(entry, &pmb_map)) | 80 | if (test_and_set_bit(entry, &pmb_map)) |
81 | return ERR_PTR(-ENOSPC); | 81 | return ERR_PTR(-ENOSPC); |
82 | pos = entry; | 82 | pos = entry; |
83 | } | 83 | } |