diff options
author | Michael S. Tsirkin <mst@mellanox.co.il> | 2006-11-16 13:16:47 +0100 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2006-11-30 00:33:09 +0100 |
commit | 2745b5b713bf3457d8977c62dc2b3aa61f4a14b0 (patch) | |
tree | 69ccbda1932d6c95b9beb9a40f5ca3a012b023bf /drivers/infiniband/ulp/ipoib/ipoib.h | |
parent | IB/srp: Fix memory leak on reconnect (diff) | |
download | linux-2745b5b713bf3457d8977c62dc2b3aa61f4a14b0.tar.xz linux-2745b5b713bf3457d8977c62dc2b3aa61f4a14b0.zip |
IPoIB: Fix skb leak when freeing neighbour
ipoib_neigh_free() is sometimes called while neighbour is still alive,
so it might still have queued skbs. Fix skb leak in this case.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib.h')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h index 0b8a79d53a00..f2b61851a49c 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib.h +++ b/drivers/infiniband/ulp/ipoib/ipoib.h @@ -233,7 +233,7 @@ static inline struct ipoib_neigh **to_ipoib_neigh(struct neighbour *neigh) } struct ipoib_neigh *ipoib_neigh_alloc(struct neighbour *neigh); -void ipoib_neigh_free(struct ipoib_neigh *neigh); +void ipoib_neigh_free(struct net_device *dev, struct ipoib_neigh *neigh); extern struct workqueue_struct *ipoib_workqueue; |