From: "Darrick J. Wong" <djwong@kernel.org>
To: Bill O'Donnell <bodonnel@redhat.com>
Cc: linux-xfs@vger.kernel.org, cmaiolino@redhat.com
Subject: Re: [PATCH v2 2/4] xfs_db: fix unitialized automatic struct ifake to 0.
Date: Thu, 13 Jun 2024 20:50:47 -0700 [thread overview]
Message-ID: <20240614035047.GC6125@frogsfrogsfrogs> (raw)
In-Reply-To: <20240613211933.1169581-3-bodonnel@redhat.com>
On Thu, Jun 13, 2024 at 04:09:16PM -0500, Bill O'Donnell wrote:
> Ensure automatic struct ifake is properly initialized.
>
> Coverity-id: 1596600, 1596597
>
> Signed-off-by: Bill O'Donnell <bodonnel@redhat.com>
Looks good now,
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
--D
> ---
> db/bmap_inflate.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/db/bmap_inflate.c b/db/bmap_inflate.c
> index 33b0c954..219f9bbf 100644
> --- a/db/bmap_inflate.c
> +++ b/db/bmap_inflate.c
> @@ -340,7 +340,7 @@ build_new_datafork(
> const struct xfs_bmbt_irec *irec,
> xfs_extnum_t nextents)
> {
> - struct xbtree_ifakeroot ifake;
> + struct xbtree_ifakeroot ifake = {};
> struct xfs_btree_cur *bmap_cur;
> int error;
>
> @@ -394,7 +394,7 @@ estimate_size(
> .leaf_slack = 1,
> .node_slack = 1,
> };
> - struct xbtree_ifakeroot ifake;
> + struct xbtree_ifakeroot ifake = {};
> struct xfs_btree_cur *bmap_cur;
> int error;
>
> --
> 2.45.2
>
>
next prev parent reply other threads:[~2024-06-14 3:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-13 21:09 [PATCH v2 0/4] xfsprogs: coverity fixes Bill O'Donnell
2024-06-13 21:09 ` [PATCH v2 1/4] mkfs.xfs: avoid potential overflowing expression in xfs_mkfs.c Bill O'Donnell
2024-06-14 3:50 ` Darrick J. Wong
2024-06-13 21:09 ` [PATCH v2 2/4] xfs_db: fix unitialized automatic struct ifake to 0 Bill O'Donnell
2024-06-14 3:50 ` Darrick J. Wong [this message]
2024-06-13 21:09 ` [PATCH v2 3/4] xfs_fsr: correct type in fsrprintf() call Bill O'Donnell
2024-06-14 3:54 ` Darrick J. Wong
2024-06-14 15:20 ` Bill O'Donnell
2024-06-13 21:09 ` [PATCH v2 4/4] xfs_repair: correct type of variable global_msgs.interval to time_t Bill O'Donnell
2024-06-14 3:54 ` Darrick J. Wong
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=20240614035047.GC6125@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=bodonnel@redhat.com \
--cc=cmaiolino@redhat.com \
--cc=linux-xfs@vger.kernel.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 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.