hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/include/linux/tpm_eventlog.h
....@@ -198,8 +198,8 @@
198198 * The loop below will unmap these fields if the log is larger than
199199 * one page, so save them here for reference:
200200 */
201
- count = READ_ONCE(event->count);
202
- event_type = READ_ONCE(event->event_type);
201
+ count = event->count;
202
+ event_type = event->event_type;
203203
204204 /* Verify that it's the log header */
205205 if (event_header->pcr_idx != 0 ||