[PATCH v2 1/3] KEYS: fix cred refcount leak in request_key_auth_new()

David Howells dhowells at redhat.com
Mon Sep 25 14:18:57 UTC 2017

Eric Biggers <ebiggers3 at gmail.com> wrote:

> +	rka = kzalloc(sizeof(*rka), GFP_KERNEL);
> +	if (!rka)
> +		goto error_free_rka;

But you haven't allocated an rka if you're in the error path.  I'll fix that
to jump over the release.

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

More information about the Linux-security-module-archive mailing list