[PATCH openEuler-5.10-LTS 08/12] pgp: Check result of crypto_alloc_shash properly