diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 2033769e8381becf9e120c02b7190bea5aa13393..fe32dd95ae4ff20008baeaaa9a78046b6b6c0ed0 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -1215,8 +1215,10 @@ static int omap_aes_probe(struct platform_device *pdev) /* Initialize crypto engine */ dd->engine = crypto_engine_alloc_init(dev, 1); - if (!dd->engine) + if (!dd->engine) { + err = -ENOMEM; goto err_engine; + } dd->engine->prepare_cipher_request = omap_aes_prepare_req; dd->engine->cipher_one_request = omap_aes_crypt_req;