Skip to content

Commit

Permalink
[PATCH] IPoIB: fix memory leak
Browse files Browse the repository at this point in the history
Fix IPoIB memory leak on device removal.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
  • Loading branch information
Michael S. Tsirkin authored and Roland Dreier committed Sep 7, 2005
1 parent 4706df3 commit 06c56e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/infiniband/ulp/ipoib/ipoib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,8 @@ static void ipoib_remove_one(struct ib_device *device)
ipoib_dev_cleanup(priv->dev);
free_netdev(priv->dev);
}

kfree(dev_list);
}

static int __init ipoib_init_module(void)
Expand Down

0 comments on commit 06c56e4

Please sign in to comment.