]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Make sure struct ipoib_neigh.queue is always initialized
authorRoland Dreier <rolandd@cisco.com>
Tue, 12 Dec 2006 22:48:18 +0000 (14:48 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 12 Dec 2006 22:48:18 +0000 (14:48 -0800)
commit13d527ec42caf338035c9d496633a632022ac0ac
tree83477ce12afd3d45397c4480426ae34a5effedd9
parent9ce9f26fdb9ff8c2575e9845f778a5ddffca8505
IPoIB: Make sure struct ipoib_neigh.queue is always initialized

Move the initialization of ipoib_neigh's skb_queue into
ipoib_neigh_alloc(), since commit 4dc57dac ("IPoIB: Fix skb leak when
freeing neighbour") will make iterate over the skb_queue to free any
packets left over when freeing the ipoib_neigh structure.

This fixes a crash when freeing ipoib_neigh structures allocated in
ipoib_mcast_send(), which otherwise don't have their skb_queue
initialized.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c