Dan Carpenter <dan.carpen...@oracle.com> wrote:

>       cert->pub->key = kmemdup(ctx->key, ctx->key_size, GFP_KERNEL);
> -     if (!cert->pub->key)
> +     if (!cert->pub->key) {
> +             ret = -ENOMEM;
>               goto error_decode;
> +     }

Put the "ret = -ENOMEM" line before the kmemdup line maybe?

David

Reply via email to