]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Fix RCU pointer dereference of wrong object
authorShlomo Pongratz <shlomop@mellanox.com>
Mon, 13 Aug 2012 14:39:50 +0000 (14:39 +0000)
committerRoland Dreier <roland@purestorage.com>
Tue, 14 Aug 2012 22:21:44 +0000 (15:21 -0700)
commit411d283ee3c26de7450e25ef31513f61a2872eba
treebc525e4ced2a854c0f774c4adf56ada985cbe746
parent4ddf4a5b2c2c56d1924d0aa28a8bb3f6ce90fb09
IB/ipoib: Fix RCU pointer dereference of wrong object

Commit 6644dc855321 ("IPoIB: Use a private hash table for path lookup
in xmit path") introduced a bug where in ipoib_neigh_free() (which is
called from a few errors flows in the driver), rcu_dereference() is
invoked with the wrong pointer object, which results in a crash.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c