https://github.com/torvalds/linux
Revision 4ecd704a4c51fd95973fcc3a60444e0e24eb9439 authored by Lino Sanfilippo on 30 May 2023, 16:41:16 UTC, committed by Linus Torvalds on 02 June 2023, 21:35:22 UTC
With commit 858e8b792d06 ("tpm, tpm_tis: Avoid cache incoherency in test
for interrupts") bit accessor functions are used to access flags in
tpm_tis_data->flags.

However these functions expect bit numbers, while the flags are defined
as bit masks in enum tpm_tis_flag.

Fix this inconsistency by using numbers instead of masks also for the
flags in the enum.

Reported-by: Pavel Machek <pavel@denx.de>
Fixes: 858e8b792d06 ("tpm, tpm_tis: Avoid cache incoherency in test for interrupts")
Signed-off-by: Lino Sanfilippo <l.sanfilippo@kunbus.com>
Cc: stable@vger.kernel.org
Reviewed-by: Pavel Machek <pavel@denx.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6d7d060
History
Tip revision: 4ecd704a4c51fd95973fcc3a60444e0e24eb9439 authored by Lino Sanfilippo on 30 May 2023, 16:41:16 UTC
tpm, tpm_tis: correct tpm_tis_flags enumeration values
Tip revision: 4ecd704
File Mode Size
.gitignore -rw-r--r-- 120 bytes
Kconfig -rw-r--r-- 5.4 KB
Makefile -rw-r--r-- 3.2 KB
blacklist.c -rw-r--r-- 9.5 KB
blacklist.h -rw-r--r-- 135 bytes
blacklist_hashes.c -rw-r--r-- 147 bytes
check-blacklist-hashes.awk -rwxr-xr-x 1.0 KB
default_x509.genkey -rw-r--r-- 407 bytes
extract-cert.c -rw-r--r-- 3.7 KB
revocation_certificates.S -rw-r--r-- 495 bytes
system_certificates.S -rw-r--r-- 1017 bytes
system_keyring.c -rw-r--r-- 10.3 KB

back to top