]> asedeno.scripts.mit.edu Git - linux.git/commit
crypto: hifn_795x - Fix a memory leak in the error handling path of 'hifn_probe()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sat, 18 Nov 2017 13:45:45 +0000 (14:45 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Nov 2017 06:33:30 +0000 (17:33 +1100)
commit1964e333baf4e91b05defdf2572ea6d0845ffbd7
tree5acefe0dd598b9a8b2f19841fa7b2cdf186753cb
parent79e53b2a5db63ab0a0a3b9c11612999a01efba15
crypto: hifn_795x - Fix a memory leak in the error handling path of 'hifn_probe()'

'dev' is leaking in the error handling path of 'hifn_probe()'.

Add a 'kfree(dev)' to match the code in 'hifn_remove()'

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hifn_795x.c