diff options
Diffstat (limited to 'drivers/char/tpm/tpm_bios.c')
-rw-r--r-- | drivers/char/tpm/tpm_bios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/tpm/tpm_bios.c b/drivers/char/tpm/tpm_bios.c index 9ffa5643e79d..1310189fd9f5 100644 --- a/drivers/char/tpm/tpm_bios.c +++ b/drivers/char/tpm/tpm_bios.c | |||
@@ -220,8 +220,8 @@ static int get_event_name(char *dest, struct tcpa_event *event, | |||
220 | } | 220 | } |
221 | break; | 221 | break; |
222 | case EVENT_TAG: | 222 | case EVENT_TAG: |
223 | event_id = be32_to_cpu(event_entry); | 223 | event_id = be32_to_cpu(*((u32 *)event_entry)); |
224 | event_data_size = be32_to_cpu(&event_entry[4]); | 224 | event_data_size = be32_to_cpu(((u32 *)event_entry)[1]); |
225 | 225 | ||
226 | /* ToDo Row data -> Base64 */ | 226 | /* ToDo Row data -> Base64 */ |
227 | 227 | ||