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-- 58 bytes
Kconfig -rw-r--r-- 62.5 KB
Makefile -rw-r--r-- 1.8 KB
build-version -rwxr-xr-x 177 bytes
calibrate.c -rw-r--r-- 8.6 KB
do_mounts.c -rw-r--r-- 15.5 KB
do_mounts.h -rw-r--r-- 908 bytes
do_mounts_initrd.c -rw-r--r-- 3.7 KB
do_mounts_rd.c -rw-r--r-- 7.7 KB
init_task.c -rw-r--r-- 6.1 KB
initramfs.c -rw-r--r-- 17.1 KB
main.c -rw-r--r-- 38.6 KB
noinitramfs.c -rw-r--r-- 862 bytes
version-timestamp.c -rw-r--r-- 762 bytes
version.c -rw-r--r-- 1.3 KB

back to top