aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-pow.c
diff options
context:
space:
mode:
authorTom Lendacky <[email protected]>2018-07-26 14:37:59 +0000
committerHerbert Xu <[email protected]>2018-08-03 10:06:05 +0000
commitafb31cd2d1a1bc3ca055fb2519ec4e9ab969ffe0 (patch)
treee5d09fd0285a72defbdfb44c01c84e38fe0dbfdc /lib/mpi/mpi-pow.c
parentcrypto: arm/chacha20 - always use vrev for 16-bit rotates (diff)
downloadkernel-afb31cd2d1a1bc3ca055fb2519ec4e9ab969ffe0.tar.gz
kernel-afb31cd2d1a1bc3ca055fb2519ec4e9ab969ffe0.zip
crypto: ccp - Check for NULL PSP pointer at module unload
Should the PSP initialization fail, the PSP data structure will be freed and the value contained in the sp_device struct set to NULL. At module unload, psp_dev_destroy() does not check if the pointer value is NULL and will end up dereferencing a NULL pointer. Add a pointer check of the psp_data field in the sp_device struct in psp_dev_destroy() and return immediately if it is NULL. Cc: <[email protected]> # 4.16.x- Fixes: 2a6170dfe755 ("crypto: ccp: Add Platform Security Processor (PSP) device support") Signed-off-by: Tom Lendacky <[email protected]> Acked-by: Gary R Hook <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions