crypto: ccp - Cleanup sp_dev_master in psp_dev_destroy()
authorJohn Allen <john.allen@amd.com>
Tue, 3 Mar 2020 13:57:24 +0000 (07:57 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Mar 2020 12:00:12 +0000 (23:00 +1100)
commit15f7a4c65293d188651e21a9c5ab6bd8f99a1459
treee9f48df3c9c8886f9b7dd1e43553db7b3adaa35a
parent1f14b57ffc0adcbba0cf35214b0a6129ceae9d09
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>
drivers/crypto/ccp/psp-dev.c
drivers/crypto/ccp/sp-dev.h
drivers/crypto/ccp/sp-pci.c