mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 21:33:52 +00: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:
parent
8afae01032
commit
ee9962671d
1 changed files with 1 additions and 0 deletions
|
@ -3913,6 +3913,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:
|
||||
|
|
Loading…
Reference in a new issue