Commit 20fb7c7
net: myri10ge: fix memory leaks
In myri10ge_probe(), myri10ge_alloc_slices() is invoked to allocate slices
related structures. Later on, myri10ge_request_irq() is used to get an irq.
However, if this process fails, the allocated slices related structures are
not deallocated, leading to memory leaks. To fix this issue, revise the
target label of the goto statement to 'abort_with_slices'.
Signed-off-by: Wenwen Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent d85f017 commit 20fb7c7
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3919 | 3919 | | |
3920 | 3920 | | |
3921 | 3921 | | |
3922 | | - | |
| 3922 | + | |
3923 | 3923 | | |
3924 | 3924 | | |
3925 | 3925 | | |
| |||
0 commit comments