From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Sudeep Dutt <sudeep.dutt@intel.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] misc: mic: fix memory leak
Date: Tue, 13 Oct 2015 22:46:12 +0530 [thread overview]
Message-ID: <20151013171559.GA6720@sudip-pc> (raw)
In-Reply-To: <1444754061.93285.246.camel@localhost>
On Tue, Oct 13, 2015 at 09:34:21AM -0700, Sudeep Dutt wrote:
> On Tue, 2015-10-13 at 14:38 +0530, Sudip Mukherjee wrote:
<snip>
> > + struct scif_hw_dev *sdev = scifdev->sdev;
> > +
> > + dma_unmap_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_MMIO],
> > + p2p->sg_nentries[SCIF_PPI_MMIO], DMA_BIDIRECTIONAL);
>
> Hi Sudip,
>
> You missed unmapping the aperture here:
>
> dma_unmap_sg(&sdev->dev, p2p->ppi_sg[SCIF_PPI_APER],
> p2p->sg_nentries[SCIF_PPI_APER], DMA_BIDIRECTIONAL);
>
> Can you please resubmit this patch with the change above?
Hi Sudeep,
v3 sent for your review.
>
> Also you should mention [PATCH char-misc-next] in the next revision.
Ohhh... yes, I keep forgetting that Fengguang will need this tag for
his build bot.
But I have one more doubt. If scif_nodeqp_send() fails then shouldn't we
remove these two nodes of the p2p connection from the lists and release
the resources?
regards
sudip
next prev parent reply other threads:[~2015-10-13 17:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-13 9:08 [PATCH] misc: mic: fix memory leak Sudip Mukherjee
2015-10-13 9:50 ` kbuild test robot
2015-10-13 10:23 ` Sudip Mukherjee
2015-10-13 9:50 ` [RFC PATCH] misc: mic: scif_deinit_p2p_info() can be static kbuild test robot
2015-10-13 16:34 ` [PATCH] misc: mic: fix memory leak Sudeep Dutt
2015-10-13 17:16 ` Sudip Mukherjee [this message]
2015-10-13 17:25 ` Sudeep Dutt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151013171559.GA6720@sudip-pc \
--to=sudipm.mukherjee@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sudeep.dutt@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox