crypto: atmel - Free memory in error path
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Tue, 20 Jan 2015 07:15:52 +0000 (08:15 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 26 Jan 2015 00:34:21 +0000 (11:34 +1100)
commit088f628cc0898c4f0da7e91945f9f43a0b18a3bf
tree6c5b921c803eb936740f2221e5bfb173ea51815b
parent379dcfb406002d855fa56f9c3d290c4048f44e9c
crypto: atmel - Free memory in error path

If only one of the 2 __get_free_pages fails, then there is a memory leak.

Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-aes.c
drivers/crypto/atmel-tdes.c