[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170625212856.GE26155@builder>
Date: Sun, 25 Jun 2017 14:28:56 -0700
From: Bjorn Andersson <bjorn.andersson@...aro.org>
To: Suman Anna <s-anna@...com>
Cc: Henri Roosen <henri.roosen@...zinger.com>, ohad@...ery.com,
linux-remoteproc@...r.kernel.org,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] rpmsg: Release rpmsg devices in backends
On Fri 02 Jun 17:28 PDT 2017, Suman Anna wrote:
> Hi Bjorn,
>
> On 06/02/2017 05:07 AM, Henri Roosen wrote:
> > My suggestion would be to additionally change/fix
> > rpmsg_register_device() so it will not overwrite the release callback.
[..]
> FWIW, I didn't run into any rpmsg device memory leaks even without this
> patch with booting and shutting down of remoteproc devices. The
> virtio_rpmsg_channel structure inherits the struct rpmsg_device and is
> the one that gets allocated, and the release function plugged in
> rpmsg_release_device is operating on the rpmsg_device pointer, but both
> are actually the same pointer.
>
> Did you run into any memory leaks that required you to have this patch?
>
I did not see any memory leaks, because it happens that the pointers are
the same in all current cases.
But the code is wrong and should be fixed, thanks for pointing this out
Henri!
Regards,
Bjorn
Powered by blists - more mailing lists