diff options
author | John Allen <john.allen@amd.com> | 2020-03-03 14:57:24 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-03-12 13:00:12 +0100 |
commit | 15f7a4c65293d188651e21a9c5ab6bd8f99a1459 (patch) | |
tree | e9f48df3c9c8886f9b7dd1e43553db7b3adaa35a /drivers/crypto/ccp/sp-dev.h | |
parent | crypto: ccp - Cleanup misc_dev on sev_exit() (diff) | |
download | linux-15f7a4c65293d188651e21a9c5ab6bd8f99a1459.tar.xz linux-15f7a4c65293d188651e21a9c5ab6bd8f99a1459.zip |
crypto: ccp - Cleanup sp_dev_master in psp_dev_destroy()
Introduce clear_psp_master_device() to ensure that sp_dev_master gets
properly cleared on the release of a psp device.
Fixes: 2a6170dfe755 ("crypto: ccp: Add Platform Security Processor (PSP) device support")
Signed-off-by: John Allen <john.allen@amd.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/sp-dev.h')
-rw-r--r-- | drivers/crypto/ccp/sp-dev.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/ccp/sp-dev.h b/drivers/crypto/ccp/sp-dev.h index 423594608ad1..f913f1494af9 100644 --- a/drivers/crypto/ccp/sp-dev.h +++ b/drivers/crypto/ccp/sp-dev.h @@ -90,6 +90,7 @@ struct sp_device { /* get and set master device */ struct sp_device*(*get_psp_master_device)(void); void (*set_psp_master_device)(struct sp_device *); + void (*clear_psp_master_device)(struct sp_device *); bool irq_registered; bool use_tasklet; |