Created
April 29, 2020 21:50
-
-
Save GustavoARSilva/bfd54d91bed65aac0a1b2ea442cb93d7 to your computer and use it in GitHub Desktop.
flexible-array member conversion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/include/linux/tpm_eventlog.h b/include/linux/tpm_eventlog.h | |
| index c253461b1c4e..4f8c90c93c29 100644 | |
| --- a/include/linux/tpm_eventlog.h | |
| +++ b/include/linux/tpm_eventlog.h | |
| @@ -97,7 +97,7 @@ struct tcg_pcr_event { | |
| u32 event_type; | |
| u8 digest[20]; | |
| u32 event_size; | |
| - u8 event[0]; | |
| + u8 event[]; | |
| } __packed; | |
| struct tcg_event_field { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment