From: Su Hui <suhui@nfschina.com>
To: stuyoder@gmail.com, laurentiu.tudor@nxp.com, nathan@kernel.org,
ndesaulniers@google.com, morbo@google.com,
justinstitt@google.com, dan.carpenter@linaro.org
Cc: Su Hui <suhui@nfschina.com>,
gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org,
llvm@lists.linux.dev, kernel-janitors@vger.kernel.org
Subject: [PATCH v2 0/2] bus: fsl-mc: Fix two double free problems in fsl_mc_device_add()
Date: Fri, 15 Nov 2024 10:32:05 +0800 [thread overview]
Message-ID: <20241115023206.3722933-1-suhui@nfschina.com> (raw)
This patchset fixes two double free problems in fsl_mc_device_add().
One is reported by clang static checker, another is reported by Dan when
reviewing the code.
ps: There is only patch 1 in v1 patch, patch 2 has no v1 version.
v1: https://lore.kernel.org/all/20241114082751.3475110-1-suhui@nfschina.com/
Su Hui (2):
bus: fsl-mc: Fix the double free in fsl_mc_device_add()
bus: fsl-mc: using put_device() when add_device() failed in
fsl_mc_device_add()
drivers/bus/fsl-mc/fsl-mc-bus.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
--
2.30.2
next reply other threads:[~2024-11-15 2:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-15 2:32 Su Hui [this message]
2024-11-15 2:32 ` [PATCH v2 1/2] bus: fsl-mc: Fix the double free " Su Hui
2024-11-15 2:32 ` [PATCH v2 2/2] bus: fsl-mc: using put_device() when add_device() failed " Su Hui
2024-11-15 8:24 ` [PATCH v2 0/2] bus: fsl-mc: Fix two double free problems " Dan Carpenter
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=20241115023206.3722933-1-suhui@nfschina.com \
--to=suhui@nfschina.com \
--cc=dan.carpenter@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=justinstitt@google.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=laurentiu.tudor@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=morbo@google.com \
--cc=nathan@kernel.org \
--cc=ndesaulniers@google.com \
--cc=stuyoder@gmail.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
all inboxes | Powered by JetHome®