diff options
author | Shlomo Pongratz <shlomop@mellanox.com> | 2012-08-29 11:14:33 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-09-12 12:05:03 -0400 |
commit | 66172c09938bfc4efdcf9b5e0246a85b9b76dd54 (patch) | |
tree | 05b77629b993215b0cbc478b5941fdf5cc1e1d05 /include/linux/cb710.h | |
parent | fea7a08acb13524b47711625eebea40a0ede69a0 (diff) |
IPoIB: Fix memory leak in the neigh table deletion flow
If the neighbours hash table is empty when unloading the module, then
ipoib_flush_neighs(), the cleanup routine, isn't called and the
memory used for the hash table itself leaked.
To fix this, ipoib_flush_neighs() is allways called, and another
completion object is added to signal when the table is freed.
Once invoked, ipoib_flush_neighs() flushes all the neighbours (if
there are any), calls the the hash table RCU free routine, which now
signals completion of the deletion process, and waits for the last
neighbour to be freed.
Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/linux/cb710.h')
0 files changed, 0 insertions, 0 deletions