hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
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 ||