Skip to content

Commit d83b950

Browse files
tititiou36davem330
authored andcommitted
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: 0dcffac ("myri10ge: add multislices support") Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1007339 commit d83b950

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/myricom/myri10ge/myri10ge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,6 +3912,7 @@ static int myri10ge_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
39123912
myri10ge_free_slices(mgp);
39133913

39143914
abort_with_firmware:
3915+
kfree(mgp->msix_vectors);
39153916
myri10ge_dummy_rdma(mgp, 0);
39163917

39173918
abort_with_ioremap:

0 commit comments

Comments
 (0)