diff options
author | Bryan O'Sullivan <bos@pathscale.com> | 2006-07-01 07:35:55 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-01 12:55:59 -0400 |
commit | 60460dfd425e3d301831d8dd6398620d67bbda2b (patch) | |
tree | 737332fcd49bbb571cc0b1fc1d19e840e5bceb69 /drivers/infiniband/hw/ipath/ipath_init_chip.c | |
parent | 4a45b7d4ece0e6dc425e9f66fa8b501b72d846db (diff) |
[PATCH] IB/ipath: fix some memory leaks on failure paths
Signed-off-by: Robert Walsh <robert.walsh@qlogic.com>
Signed-off-by: Bryan O'Sullivan <bryan.osullivan@qlogic.com>
Cc: "Michael S. Tsirkin" <mst@mellanox.co.il>
Cc: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/infiniband/hw/ipath/ipath_init_chip.c')
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_init_chip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c index e9b5534f215..37cd96e96e3 100644 --- a/drivers/infiniband/hw/ipath/ipath_init_chip.c +++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c | |||
@@ -115,6 +115,7 @@ static int create_port0_egr(struct ipath_devdata *dd) | |||
115 | "eager TID %u\n", e); | 115 | "eager TID %u\n", e); |
116 | while (e != 0) | 116 | while (e != 0) |
117 | dev_kfree_skb(skbs[--e]); | 117 | dev_kfree_skb(skbs[--e]); |
118 | vfree(skbs); | ||
118 | ret = -ENOMEM; | 119 | ret = -ENOMEM; |
119 | goto bail; | 120 | goto bail; |
120 | } | 121 | } |