Skip to content

Commit

Permalink
mt7603: use READ_ONCE instead of ACCESS_ONCE
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fietkau <nbd@nbd.name>
  • Loading branch information
nbd168 committed Jun 27, 2019
1 parent d680ab0 commit 6cafaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt7603/mac.c
Expand Up @@ -998,7 +998,7 @@ mt7603_fill_txs(struct mt7603_dev *dev, struct mt7603_sta *sta,
goto out;
}

rate_set_tsf = ACCESS_ONCE(sta->rate_set_tsf);
rate_set_tsf = READ_ONCE(sta->rate_set_tsf);
rs_idx = !((u32)(FIELD_GET(MT_TXS1_F0_TIMESTAMP, le32_to_cpu(txs_data[1])) -
rate_set_tsf) < 1000000);
rs_idx ^= rate_set_tsf & BIT(0);
Expand Down

0 comments on commit 6cafaca

Please sign in to comment.