Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1570950
| From | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] tpm: fix a sparse error in tpm-interface.c |
| Date | 2017-01-31 19:10 +0100 |
| Message-ID | <t5L2p-3UK-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
drivers/char/tpm//tpm-interface.c:492:42: warning: bad assignment (-=)
to restricted __be32
Fixes: 0883743825e3 ("TPM: sysfs functions consolidation")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
---
drivers/char/tpm/tpm-interface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/char/tpm/tpm-interface.c b/drivers/char/tpm/tpm-interface.c
index 423938e..746bc54 100644
--- a/drivers/char/tpm/tpm-interface.c
+++ b/drivers/char/tpm/tpm-interface.c
@@ -489,7 +489,7 @@ ssize_t tpm_getcap(struct tpm_chip *chip, u32 subcap_id, cap_t *cap,
tpm_cmd.params.getcap_in.cap = cpu_to_be32(subcap_id);
/*subcap field not necessary */
tpm_cmd.params.getcap_in.subcap_size = cpu_to_be32(0);
- tpm_cmd.header.in.length -= cpu_to_be32(sizeof(__be32));
+ tpm_cmd.header.in.length = cpu_to_be32(18);
} else {
if (subcap_id == TPM_CAP_FLAG_PERM ||
subcap_id == TPM_CAP_FLAG_VOL)
--
2.9.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] tpm: fix a sparse error in tpm-interface.c Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-31 19:10 +0100
Re: [tpmdd-devel] [PATCH] tpm: fix a sparse error in tpm-interface.c James Bottomley <James.Bottomley@HansenPartnership.com> - 2017-01-31 20:20 +0100
Re: [tpmdd-devel] [PATCH] tpm: fix a sparse error in tpm-interface.c Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2017-01-31 22:00 +0100
csiph-web