drm/radeon: more strictly validate the UVD codec
[linux-2.6-block.git] / mm / swapfile.c
index 63f55ccb9b260d695ac8e9ae0635014a2c5746af..a7e72103f23bfbf81aad771343dac77c4f4d1958 100644 (file)
@@ -1312,7 +1312,7 @@ static unsigned int find_next_to_unuse(struct swap_info_struct *si,
                        else
                                continue;
                }
-               count = ACCESS_ONCE(si->swap_map[i]);
+               count = READ_ONCE(si->swap_map[i]);
                if (count && swap_count(count) != SWAP_MAP_BAD)
                        break;
        }