5d8e2971e8
In tpm_bios_measurements_open(), get_device() is called on the device
embedded in struct tpm_chip. In the error path, however, put_device() is
not called. This results in a reference count leak, which prevents the
device from being properly released. This commit makes sure to call
put_device() when the seq_open() call fails.
Cc: stable@vger.kernel.org # +v4.18
Fixes:
|
||
---|---|---|
.. | ||
acpi.c | ||
common.c | ||
common.h | ||
efi.c | ||
of.c | ||
tpm1.c | ||
tpm2.c |