From: "Theodore Ts'o" <tytso@mit.edu>
To: wuguanghao <wuguanghao3@huawei.com>
Cc: linux-ext4@vger.kernel.org, linfeilong@huawei.com,
liuzhiqiang26@huawei.com
Subject: Re: [PATCH v3 04/12] ss_add_info_dir: don't zap the info->info_dirs and check whether
Date: Mon, 2 Aug 2021 22:00:10 -0400 [thread overview]
Message-ID: <YQijKmP2T/XJzC0m@mit.edu> (raw)
In-Reply-To: <20210728015648.284588-2-wuguanghao3@huawei.com>
On Wed, Jul 28, 2021 at 09:56:45AM +0800, wuguanghao wrote:
> From: Wu Guanghao <wuguanghao3@huawei.com>
>
> In ss_add_info_dir(), don't zap the info->info_dirs. At the same time, it is necessary
> to check whether dirs[n_dirs] is a null pointer, otherwise a segmentation
> fault will occur.
>
> Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
> Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
> Reviewed-by: Wu Bo <wubo40@huawei.com>
Thanks, applied.
- Ted
next prev parent reply other threads:[~2021-08-03 2:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-28 1:56 [PATCH v3 00/12] e2fsprogs: some bugfixs wuguanghao
2021-07-28 1:56 ` [PATCH v3 04/12] ss_add_info_dir: don't zap the info->info_dirs and check whether wuguanghao
2021-08-03 2:00 ` Theodore Ts'o [this message]
2021-07-28 1:56 ` [PATCH v3 05/12] ss_create_invocation: fix memory leak and check whether NULL pointer wuguanghao
2021-08-03 2:01 ` Theodore Ts'o
2021-07-28 1:56 ` [PATCH v3 10/12] hashmap: change return value type of ext2fs_hashmap_add() wuguanghao
2021-08-03 2:33 ` Theodore Ts'o
2021-07-28 1:56 ` [PATCH v3 11/12] misc/lsattr: check whether path is NULL in lsattr_dir_proc() wuguanghao
2021-08-03 2:35 ` Theodore Ts'o
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=YQijKmP2T/XJzC0m@mit.edu \
--to=tytso@mit.edu \
--cc=linfeilong@huawei.com \
--cc=linux-ext4@vger.kernel.org \
--cc=liuzhiqiang26@huawei.com \
--cc=wuguanghao3@huawei.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.