Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1571152 > unrolled thread

[PATCH] tpm: fix a sparse error in tpm-sysfs.c

Started byStefan Berger <stefanb@linux.vnet.ibm.com>
First post2017-01-31 22:50 +0100
Last post2017-01-31 22:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] tpm: fix a sparse error in tpm-sysfs.c Stefan Berger <stefanb@linux.vnet.ibm.com> - 2017-01-31 22:50 +0100

#1571152 — [PATCH] tpm: fix a sparse error in tpm-sysfs.c

FromStefan Berger <stefanb@linux.vnet.ibm.com>
Date2017-01-31 22:50 +0100
Subject[PATCH] tpm: fix a sparse error in tpm-sysfs.c
Message-ID<t5NnA-5bA-23@gated-at.bofh.it>
drivers/char/tpm/tpm-sysfs.c:161:25: warning: expression using sizeof bool

Fixes: c659af78eb7b ("tpm: Check size of response before accessing data")
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
---
 drivers/char/tpm/tpm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/tpm/tpm.h b/drivers/char/tpm/tpm.h
index bff37be..6b4e7aa 100644
--- a/drivers/char/tpm/tpm.h
+++ b/drivers/char/tpm/tpm.h
@@ -281,7 +281,7 @@ struct permanent_flags_t {
 typedef union {
 	struct	permanent_flags_t perm_flags;
 	struct	stclear_flags_t	stclear_flags;
-	bool	owned;
+	__u8	owned;
 	__be32	num_pcrs;
 	struct	tpm_version_t	tpm_version;
 	struct	tpm_version_1_2_t tpm_version_1_2;
-- 
2.4.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web