mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
79e53b2a5d
commit
1964e333ba
@ -2579,6 +2579,7 @@ err_out_unmap_bars:
|
||||
for (i = 0; i < 3; ++i)
|
||||
if (dev->bar[i])
|
||||
iounmap(dev->bar[i]);
|
||||
kfree(dev);
|
||||
|
||||
err_out_free_regions:
|
||||
pci_release_regions(pdev);
|
||||
|
Loading…
Reference in New Issue
Block a user