]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Replace list_del of the neigh->list with list_del_init
authorFeras Daoud <ferasda@mellanox.com>
Wed, 28 Dec 2016 12:47:27 +0000 (14:47 +0200)
committerDoug Ledford <dledford@redhat.com>
Thu, 12 Jan 2017 19:01:05 +0000 (14:01 -0500)
commit2325e51c6479ab7c78f60be7e2e1fc1e59118810
tree9ed11c643260d8e02c8544f5e520d107235db111
parenteeab888b6c0233ac83744c4d860dcec364f75ed9
IB/ipoib: Replace list_del of the neigh->list with list_del_init

In order to resolve a situation where a few process delete
the same list element in sequence and cause panic, list_del
is replaced with list_del_init. In this case if the first
process that calls list_del releases the lock before acquiring
it again, other processes who can acquire the lock will call
list_del_init.

Fixes: 0c33600d854e ("IPoIB: Use a private hash table for path lookup")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c