]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Fix a memory leak in error handling path
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 19 Feb 2017 09:35:05 +0000 (10:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Feb 2017 15:33:38 +0000 (10:33 -0500)
commit4de28b16e85ca9bc1c9f95f6cc9c7ed3cb08b39c
tree9d558ebc18274569a7d02971dc5b8fbbcaeb558e
parent5de56ba61620098b67a5e412e40c4db2a54f85b0
qlcnic: Fix a memory leak in error handling path

If 'dma_alloc_coherent()' fails, we should release resources allocated so
far, just as done in all other cases in this function.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c