mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
mlx4_core: Fix memory leak in mlx4_enable_msi_x()
When the msi_x option is enabled but pci_enable_msix() fails (not enough vectors are available etc), the entries array was not freed on the error path. Signed-off-by: Nicolas Morey-Chaisemartin <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
This commit is contained in:
parent
a939b96ccc
commit
5bf0da7dd0
1 changed files with 1 additions and 1 deletions
|
|
@ -976,7 +976,7 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
|
|||
nreq = err;
|
||||
goto retry;
|
||||
}
|
||||
|
||||
kfree(entries);
|
||||
goto no_msi;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue