hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/char/tpm/xen-tpmfront.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Implementation of the Xen vTPM device frontend
34 *
45 * Author: Daniel De Graaf <dgdegra@tycho.nsa.gov>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2,
8
- * as published by the Free Software Foundation.
96 */
107 #include <linux/errno.h>
118 #include <linux/err.h>
....@@ -163,7 +160,7 @@
163160 wmb();
164161 notify_remote_via_evtchn(priv->evtchn);
165162
166
- ordinal = be32_to_cpu(((struct tpm_input_header*)buf)->ordinal);
163
+ ordinal = be32_to_cpu(((struct tpm_header *)buf)->ordinal);
167164 duration = tpm_calc_ordinal_duration(chip, ordinal);
168165
169166 if (wait_for_tpm_stat(chip, VTPM_STATUS_IDLE, duration,