Stale pointers left in static variables misc_dev and sp_dev_master will trigger use-after-free error when DEBUG_TEST_DRIVER_REMOVE is configured. John Allen (2): crypto/ccp: Cleanup misc_dev on sev exit crypto/ccp: Cleanup sp_dev_master on psp device destroy drivers/crypto/ccp/psp-dev.c | 3 +++ drivers/crypto/ccp/sev-dev.c | 6 +++--- drivers/crypto/ccp/sp-dev.h | 1 + drivers/crypto/ccp/sp-pci.c | 9 +++++++++ 4 files changed, 16 insertions(+), 3 deletions(-) -- 2.18.2