Skip to content

Commit 4cb9dc1

Browse files
committed
Merge tag 'tpmdd-next-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd
Pull tpm updates from Jarkko Sakkinen: "A couple of bug fixes. No new features are coming for this release. I had one in progress but decided to let it mature up until 6.12" * tag 'tpmdd-next-6.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd: tpm_tis_spi: add missing attpm20p SPI device ID entry char: tpm: Fix possible memory leak in tpm_bios_measurements_open()
2 parents b02c520 + 0543f29 commit 4cb9dc1

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

drivers/char/tpm/eventlog/common.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ static int tpm_bios_measurements_open(struct inode *inode,
4747
if (!err) {
4848
seq = file->private_data;
4949
seq->private = chip;
50+
} else {
51+
put_device(&chip->dev);
5052
}
5153

5254
return err;

drivers/char/tpm/tpm_tis_spi_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ static void tpm_tis_spi_remove(struct spi_device *dev)
318318
}
319319

320320
static const struct spi_device_id tpm_tis_spi_id[] = {
321+
{ "attpm20p", (unsigned long)tpm_tis_spi_probe },
321322
{ "st33htpm-spi", (unsigned long)tpm_tis_spi_probe },
322323
{ "slb9670", (unsigned long)tpm_tis_spi_probe },
323324
{ "tpm_tis_spi", (unsigned long)tpm_tis_spi_probe },

0 commit comments

Comments
 (0)