Skip to content
Snippets Groups Projects
Commit 5bf0da7d authored by Nicolas Morey-Chaisemartin's avatar Nicolas Morey-Chaisemartin Committed by Roland Dreier
Browse files

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: default avatarNicolas Morey-Chaisemartin <nicolas.morey-chaisemartin@ext.bull.net>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent a939b96c
No related branches found
No related tags found
No related merge requests found
......@@ -976,7 +976,7 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
nreq = err;
goto retry;
}
kfree(entries);
goto no_msi;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment