| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Implementation of the Xen vTPM device frontend |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 9 | 6 | */ |
|---|
| 10 | 7 | #include <linux/errno.h> |
|---|
| 11 | 8 | #include <linux/err.h> |
|---|
| .. | .. |
|---|
| 163 | 160 | wmb(); |
|---|
| 164 | 161 | notify_remote_via_evtchn(priv->evtchn); |
|---|
| 165 | 162 | |
|---|
| 166 | | - ordinal = be32_to_cpu(((struct tpm_input_header*)buf)->ordinal); |
|---|
| 163 | + ordinal = be32_to_cpu(((struct tpm_header *)buf)->ordinal); |
|---|
| 167 | 164 | duration = tpm_calc_ordinal_duration(chip, ordinal); |
|---|
| 168 | 165 | |
|---|
| 169 | 166 | if (wait_for_tpm_stat(chip, VTPM_STATUS_IDLE, duration, |
|---|