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

From: David Howells
Date: Mon Sep 25 2017 - 10:19:04 EST


Eric Biggers <ebiggers3@xxxxxxxxx> 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.

David