summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-09-20 16:14:57 +0900
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>2026-09-20 16:14:57 +0900
commitb9d9a226589277aad5d82ce8e922b754766f672d (patch)
tree995c3a23918788983fd653be9c87596fbfec6b58 /rust/kernel/alloc/kvec/errors.rs
parent00bbf49783b0107f3b69f35ecebf6afbeaae3f1f (diff)
firewire: cdev: use memory barrier to access fw_device members
The core code uses a read memory barrier when accessing the generation and node_id members of the fw_device structure. It assumes that the latest value of the former is visible to a processor core when the latest value of the latter is visible, since these members are updated in reverse order with a write memory barrier. However, the function that fills the fw_cdev_event_bus_reset structure does not follow this approach. Use a read memory barrier when accessing these members. Link: https://lore.kernel.org/r/20260920071501.77785-2-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions