Pan Bian <bianpan201...@163.com> wrote:

>       outlen = crypto_akcipher_maxsize(tfm);
>       output = kmalloc(outlen, GFP_KERNEL);
> -     if (!output)
> +     if (!output) {
> +             ret = -ENOMEM;
>               goto error_free_req;
> +     }

This is preferred:

+       ret = -ENOMEM;
        outlen = crypto_akcipher_maxsize(tfm);
        output = kmalloc(outlen, GFP_KERNEL);
        if (!output)
                goto error_free_req;

I'll alter your patch.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to