[PATCH 4.9 005/212] crypto: ccp - Release all allocated memory if sha type is invalid