提交 5bf0da7d 编写于 作者: N Nicolas Morey-Chaisemartin 提交者: Roland Dreier

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: NNicolas Morey-Chaisemartin <nicolas.morey-chaisemartin@ext.bull.net>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 a939b96c
......@@ -976,7 +976,7 @@ static void mlx4_enable_msi_x(struct mlx4_dev *dev)
nreq = err;
goto retry;
}
kfree(entries);
goto no_msi;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册