tpm: add request_locality before write TPM_INT_ENABLE
authorChen Jun <chenjun102@huawei.com>
Wed, 13 Oct 2021 06:25:56 +0000 (06:25 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:03 +0000 (10:54 +0100)
commitfb46223c9f940c7b27f6df455e3f4bc9dd11c772
tree64073d4644072cb7e942e65896844baa98f0d545
parent20edf903a3a570a4406d1d30a554cbf05e6c379f
tpm: add request_locality before write TPM_INT_ENABLE

[ Upstream commit 0ef333f5ba7f24f5d8478425c163d3097f1c7afd ]

Locality is not appropriately requested before writing the int mask.
Add the missing boilerplate.

Fixes: e6aef069b6e9 ("tpm_tis: convert to using locality callbacks")
Signed-off-by: Chen Jun <chenjun102@huawei.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/char/tpm/tpm_tis_core.c