The patch titled IB/ipath: fix some memory leaks on failure paths has been removed from the -mm tree. Its filename is ib-ipath-fix-some-memory-leaks-on-failure-paths.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: IB/ipath: fix some memory leaks on failure paths From: "Bryan O'Sullivan" <bos@xxxxxxxxxxxxx> Signed-off-by: Robert Walsh <robert.walsh@xxxxxxxxxx> Signed-off-by: Bryan O'Sullivan <bryan.osullivan@xxxxxxxxxx> Cc: "Michael S. Tsirkin" <mst@xxxxxxxxxxxxxx> Cc: Roland Dreier <rolandd@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/infiniband/hw/ipath/ipath_init_chip.c | 1 + drivers/infiniband/hw/ipath/ipath_qp.c | 2 ++ 2 files changed, 3 insertions(+) diff -puN drivers/infiniband/hw/ipath/ipath_init_chip.c~ib-ipath-fix-some-memory-leaks-on-failure-paths drivers/infiniband/hw/ipath/ipath_init_chip.c --- a/drivers/infiniband/hw/ipath/ipath_init_chip.c~ib-ipath-fix-some-memory-leaks-on-failure-paths +++ a/drivers/infiniband/hw/ipath/ipath_init_chip.c @@ -115,6 +115,7 @@ static int create_port0_egr(struct ipath "eager TID %u\n", e); while (e != 0) dev_kfree_skb(skbs[--e]); + vfree(skbs); ret = -ENOMEM; goto bail; } diff -puN drivers/infiniband/hw/ipath/ipath_qp.c~ib-ipath-fix-some-memory-leaks-on-failure-paths drivers/infiniband/hw/ipath/ipath_qp.c --- a/drivers/infiniband/hw/ipath/ipath_qp.c~ib-ipath-fix-some-memory-leaks-on-failure-paths +++ a/drivers/infiniband/hw/ipath/ipath_qp.c @@ -692,6 +692,7 @@ struct ib_qp *ipath_create_qp(struct ib_ case IB_QPT_GSI: qp = kmalloc(sizeof(*qp), GFP_KERNEL); if (!qp) { + vfree(swq); ret = ERR_PTR(-ENOMEM); goto bail; } @@ -702,6 +703,7 @@ struct ib_qp *ipath_create_qp(struct ib_ qp->r_rq.wq = vmalloc(qp->r_rq.size * sz); if (!qp->r_rq.wq) { kfree(qp); + vfree(swq); ret = ERR_PTR(-ENOMEM); goto bail; } _ Patches currently in -mm which might be from bos@xxxxxxxxxxxxx are origin.patch ib-ipath-fixes-a-bug-where-our-delay-for-eeprom-no.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html