]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4_core: Fix memory leak in mlx4_enable_msi_x()
authorNicolas Morey-Chaisemartin <nicolas.morey-chaisemartin@ext.bull.net>
Tue, 21 Apr 2009 17:11:06 +0000 (10:11 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 21 Apr 2009 17:11:06 +0000 (10:11 -0700)
commit817c1c20c835dfc42e891a9847339d82bc9016c8
tree6d995cda8a563dacfd734cb1fb2395e83c08559f
parent63623426b515f6c2542d8ef7b5d7d51d251db91f
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 <nicolas.morey-chaisemartin@ext.bull.net>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/main.c