From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Chris Leech <cleech@redhat.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
Qinglang Miao <miaoqinglang@huawei.com>,
Lee Duncan <lduncan@suse.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org,
open-iscsi@googlegroups.com
Subject: Re: [PATCH] scsi: iscsi: fix inappropriate use of put_device
Date: Wed, 9 Dec 2020 12:23:18 -0500 [thread overview]
Message-ID: <160753457753.14816.8140218142483943973.b4-ty@oracle.com> (raw)
In-Reply-To: <20201120074852.31658-1-miaoqinglang@huawei.com>
On Fri, 20 Nov 2020 15:48:52 +0800, Qinglang Miao wrote:
> kfree(conn) is called inside put_device(&conn->dev) so that
> another one would cause use-after-free. Besides, device_unregister
> should be used here rather than put_device.
Applied to 5.11/scsi-queue, thanks!
[1/1] scsi: iscsi: fix inappropriate use of put_device
https://git.kernel.org/mkp/scsi/c/6dc1c7ab6f04
--
Martin K. Petersen Oracle Linux Engineering
prev parent reply other threads:[~2020-12-09 17:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-20 7:48 [PATCH] scsi: iscsi: fix inappropriate use of put_device Qinglang Miao
2020-12-02 19:35 ` Mike Christie
2020-12-09 17:23 ` Martin K. Petersen [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=160753457753.14816.8140218142483943973.b4-ty@oracle.com \
--to=martin.petersen@oracle.com \
--cc=cleech@redhat.com \
--cc=jejb@linux.ibm.com \
--cc=lduncan@suse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=miaoqinglang@huawei.com \
--cc=open-iscsi@googlegroups.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).