From: Wei Yongjun <weiyongjun1@huawei.com>
To: Mark Brown <broonie@kernel.org>, Sanjay R Mehta <sanju.mehta@amd.com>
Cc: <kernel-janitors@vger.kernel.org>, <linux-spi@vger.kernel.org>,
Hulk Robot <hulkci@huawei.com>
Subject: Re: [PATCH -next] spi: spi-amd: Remove spi_master_put in amd_spi_remove()
Date: Tue, 12 May 2020 09:22:13 +0800 [thread overview]
Message-ID: <566833d4-23e9-6ab6-e7bb-245678d25ee2@huawei.com> (raw)
In-Reply-To: <20200511172920.GJ8216@sirena.org.uk>
On 2020/5/12 1:29, Mark Brown wrote:
> On Mon, May 11, 2020 at 06:22:01PM +0100, Mark Brown wrote:
>> On Thu, 7 May 2020 11:55:50 +0000, Wei Yongjun wrote:
>>> The call to spi_master_put() in amd_spi_remove() is redundant and
>>> may causes user after free since the master have been freed by
>>> spi_unregister_master(), so remove it.
>>
>> Applied to
>>
>> local tree spi/for-5.7
>
> No it wasn't, sorry for the noise here.
>
I saw similar patch has been merged, so we do not need this patch any more.
7b9c94bd13cc ("spi: amd: Fix refcount underflow on remove")
Links:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=7b9c94bd13cc9dc9c0c4932ebacf756ae612d52a
Regards,
Wei Yongjun
prev parent reply other threads:[~2020-05-12 1:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-07 11:55 [PATCH -next] spi: spi-amd: Remove spi_master_put in amd_spi_remove() Wei Yongjun
2020-05-08 17:14 ` Mark Brown
2020-05-08 17:53 ` Mark Brown
2020-05-11 17:21 ` Mark Brown
2020-05-11 17:29 ` Mark Brown
2020-05-12 1:22 ` Wei Yongjun [this message]
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=566833d4-23e9-6ab6-e7bb-245678d25ee2@huawei.com \
--to=weiyongjun1@huawei.com \
--cc=broonie@kernel.org \
--cc=hulkci@huawei.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=sanju.mehta@amd.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;
as well as URLs for NNTP newsgroup(s).