diff options
Diffstat (limited to 'drivers/char/tpm/tpmrm-dev.c')
-rw-r--r-- | drivers/char/tpm/tpmrm-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpmrm-dev.c b/drivers/char/tpm/tpmrm-dev.c index 630bddce65a8..c636e7fdd1f5 100644 --- a/drivers/char/tpm/tpmrm-dev.c +++ b/drivers/char/tpm/tpmrm-dev.c @@ -39,7 +39,7 @@ static int tpmrm_release(struct inode *inode, struct file *file) struct tpmrm_priv *priv = container_of(fpriv, struct tpmrm_priv, priv); tpm_common_release(file, fpriv); - tpm2_del_space(&priv->space); + tpm2_del_space(fpriv->chip, &priv->space); kfree(priv); return 0; |