mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
Merge ada3bfb649 ("Merge tag 'tpmdd-next-v6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd") into android-mainline
Steps on the way to 6.1-rc1 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I4b3f7b19d03b0275fee97573a7fbe60d4b9a1ccd
This commit is contained in:
@@ -380,7 +380,7 @@ void tpm_add_ppi(struct tpm_chip *chip)
|
||||
TPM_PPI_FN_VERSION,
|
||||
NULL, ACPI_TYPE_STRING);
|
||||
if (obj) {
|
||||
strlcpy(chip->ppi_version, obj->string.pointer,
|
||||
strscpy(chip->ppi_version, obj->string.pointer,
|
||||
sizeof(chip->ppi_version));
|
||||
ACPI_FREE(obj);
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ static void keyring_revoke(struct key *keyring);
|
||||
static void keyring_destroy(struct key *keyring);
|
||||
static void keyring_describe(const struct key *keyring, struct seq_file *m);
|
||||
static long keyring_read(const struct key *keyring,
|
||||
char __user *buffer, size_t buflen);
|
||||
char *buffer, size_t buflen);
|
||||
|
||||
struct key_type key_type_keyring = {
|
||||
.name = "keyring",
|
||||
|
||||
@@ -371,6 +371,10 @@ class Client:
|
||||
fcntl.fcntl(self.tpm, fcntl.F_SETFL, flags)
|
||||
self.tpm_poll = select.poll()
|
||||
|
||||
def __del__(self):
|
||||
if self.tpm:
|
||||
self.tpm.close()
|
||||
|
||||
def close(self):
|
||||
self.tpm.close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user