[PATCH 4.14 03/51] crypto: ccp - Release all allocated memory if sha type is invalid