mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
myri10ge: Fix an error handling path in myri10ge_probe()
[ Upstream commitd83b950d44] Some memory allocated in myri10ge_probe_slices() is not released in the error handling path of myri10ge_probe(). Add the corresponding kfree(), as already done in the remove function. Fixes:0dcffac1a3("myri10ge: add multislices support") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3c97373690
commit
7c3a20bfd2
@@ -3920,6 +3920,7 @@ abort_with_slices:
|
|||||||
myri10ge_free_slices(mgp);
|
myri10ge_free_slices(mgp);
|
||||||
|
|
||||||
abort_with_firmware:
|
abort_with_firmware:
|
||||||
|
kfree(mgp->msix_vectors);
|
||||||
myri10ge_dummy_rdma(mgp, 0);
|
myri10ge_dummy_rdma(mgp, 0);
|
||||||
|
|
||||||
abort_with_ioremap:
|
abort_with_ioremap:
|
||||||
|
|||||||
Reference in New Issue
Block a user