Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1588596

Re: [PATCH] crypto: cavium: fix leak on curr if curr->head fails to be allocated

From Herbert Xu <herbert@gondor.apana.org.au>
Newsgroups linux.kernel
Subject Re: [PATCH] crypto: cavium: fix leak on curr if curr->head fails to be allocated
Date 2017-02-27 11:50 +0100
Message-ID <tfr2p-4lJ-5@gated-at.bofh.it> (permalink)
References <tbT6V-6aX-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, Feb 17, 2017 at 03:57:43PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> The exit path when curr->head cannot be allocated fails to kfree the
> earlier allocated curr.  Fix this by kfree'ing it.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] crypto: cavium: fix leak on curr if curr->head fails to be allocated Colin King <colin.king@canonical.com> - 2017-02-17 17:00 +0100
  Re: [PATCH] crypto: cavium: fix leak on curr if curr->head fails to  be allocated Herbert Xu <herbert@gondor.apana.org.au> - 2017-02-27 11:50 +0100

csiph-web