From: Hanna Reitz <hreitz@redhat.com>
To: Daniella Lee <daniellalee111@gmail.com>,
kwolf@redhat.com, qemu-block@nongnu.org, qemu-devel@nongnu.org
Cc: pai.po.sec@gmail.com
Subject: Re: [PATCH] block vvfat.c fix leak when failure occurs
Date: Tue, 23 Nov 2021 09:57:17 +0100 [thread overview]
Message-ID: <977ab3f7-89d0-6304-d2a7-a13fc916e0ce@redhat.com> (raw)
In-Reply-To: <20211119112553.352222-1-daniellalee111@gmail.com>
On 19.11.21 12:25, Daniella Lee wrote:
> Based on your suggestions. I made a new patch which contians:
> 1.format detection
> 2.replace calloc with g_malloc0 in enable_write_target function
> 3.use g_free without null pointer detection in vvfat_open function
> 4.delete line "ret = 0", use return ret directly in vvfat_open function
>
>
> Signed-off-by: Daniella Lee <daniellalee111@gmail.com>
> ---
> block/vvfat.c | 16 ++++++++++++----
> 1 file changed, 12 insertions(+), 4 deletions(-)
Thanks, looks good to me!
Two remarks for the next time: When you send a new version of a patch,
you should mark it as “v2” (and then “v3” and so on) in the subject,
e.g. “[PATCH v2]”. This can be done e.g. with `git format-patch -v2`.
Second, for a new iteration, you should generally keep the commit
message from the previous one and not replace it with a change log.
Having a change log is very nice, don’t get me wrong, but it shouldn’t
be part of the commit message. Once you’ve formatted the patch with
`git format-patch`, you can edit the file and put the change log below
the “---” line, e.g. like it was done here:
https://lists.nongnu.org/archive/html/qemu-block/2021-09/msg00453.html
No need for you to respin this patch, though, I’ve just replaced the
commit message with the one from v1 and applied it to my block branch:
https://gitlab.com/hreitz/qemu/-/commits/block/
Thanks again,
Hanna
prev parent reply other threads:[~2021-11-23 8:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-16 12:57 [PATCH] block/vvfat.c fix leak when failure occurs Daniella Lee
2021-11-18 8:34 ` Hanna Reitz
[not found] ` <CAH1re1FV07jaUF9xQZn-spX0A+rwdebWvm0LXdaAqBWDocvGcw@mail.gmail.com>
2021-11-18 14:51 ` Hanna Reitz
2021-11-19 11:25 ` [PATCH] block vvfat.c " Daniella Lee
2021-11-23 8:57 ` Hanna Reitz [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=977ab3f7-89d0-6304-d2a7-a13fc916e0ce@redhat.com \
--to=hreitz@redhat.com \
--cc=daniellalee111@gmail.com \
--cc=kwolf@redhat.com \
--cc=pai.po.sec@gmail.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
/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).