diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-12-18 19:08:40 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-19 12:30:32 +0000 |
commit | d83b950d44d2982c0e62e3d81b0f35ab09431008 (patch) | |
tree | 4686015279dc09a71c3963fe05e502db58d8dc33 | |
parent | 10073399cb5e389ab275bd1c9df4b486a2f0c9d4 (diff) | |
download | linux-d83b950d44d2982c0e62e3d81b0f35ab09431008.tar.bz2 |
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: 0dcffac1a329 ("myri10ge: add multislices support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/myricom/myri10ge/myri10ge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c index 8073d7a90a26..c5687d94ea88 100644 --- a/drivers/net/ethernet/myricom/myri10ge/myri10ge.c +++ b/drivers/net/ethernet/myricom/myri10ge/myri10ge.c @@ -3912,6 +3912,7 @@ abort_with_slices: myri10ge_free_slices(mgp); abort_with_firmware: + kfree(mgp->msix_vectors); myri10ge_dummy_rdma(mgp, 0); abort_with_ioremap: |