[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210430105910.GA5981@sirena.org.uk>
Date: Fri, 30 Apr 2021 11:59:10 +0100
From: Mark Brown <broonie@...nel.org>
To: Art Nikpal <email2tema@...il.com>
Cc: Neil Armstrong <narmstrong@...libre.com>,
Kevin Hilman <khilman@...libre.com>, jbrunet@...libre.com,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
dri-devel@...ts.freedesktop.org, linux-spi@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-amlogic@...ts.infradead.org, linux-kernel@...r.kernel.org,
Christian Hewitt <christianshewitt@...il.com>,
Artem Lapkin <art@...das.com>, nick@...das.com,
Gouwa Wang <gouwa@...das.com>
Subject: Re: [PATCH] SPI: meson-spifc add missed calls to remove function
On Fri, Apr 30, 2021 at 04:49:35PM +0800, Art Nikpal wrote:
> Yep! but
Please don't top post, reply in line with needed context. This allows
readers to readily follow the flow of conversation and understand what
you are talking about and also helps ensure that everything in the
discussion is being addressed.
> if i try call spi_master_put(master) or spi_unregister_controller(master);
> it's made Segmentation fault for me
>
> what's wrong - may be somebody can help me
Probably something is referencing the controller afer it was freed, I do
notice that the current version of the driver uses devm_ to register the
controller so you'd end up with a double free unless you either use devm_
when freeing or change to a normal registration.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists