Commit d83b950d authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller
Browse files

myri10ge: Fix an error handling path in myri10ge_probe()



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: 0dcffac1 ("myri10ge: add multislices support")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 10073399
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3912,6 +3912,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	myri10ge_free_slices(mgp);

abort_with_firmware:
	kfree(mgp->msix_vectors);
	myri10ge_dummy_rdma(mgp, 0);

abort_with_ioremap: