All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Wu <peter@lekensteyn.nl>, Peter Lieven <pl@kamp.de>,
	qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-trivial] [PATCH] block/iscsi: fix uninitialized variable
Date: Tue, 23 Dec 2014 17:31:07 +0100	[thread overview]
Message-ID: <549998CB.4050809@redhat.com> (raw)
In-Reply-To: <1419348641-20955-1-git-send-email-peter@lekensteyn.nl>



On 23/12/2014 16:30, Peter Wu wrote:
> 'ret' was never initialized in the success path.
> 
> Signed-off-by: Peter Wu <peter@lekensteyn.nl>
> ---
> Hi,
> 
> Found this warning when compiling with --enable-debug. This issue was previously
> fixed as part of Peter Lieven's patch series[1] but it never seemed to get
> merged.
> 
> Kinds regards,
> Peter
> 
>  [1]: https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg04279.html
> ---
>  block/iscsi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/iscsi.c b/block/iscsi.c
> index ed375fc..12ddbfb 100644
> --- a/block/iscsi.c
> +++ b/block/iscsi.c
> @@ -1286,7 +1286,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
>      QemuOpts *opts;
>      Error *local_err = NULL;
>      const char *filename;
> -    int i, ret;
> +    int i, ret = 0;
>  
>      if ((BDRV_SECTOR_SIZE % 512) != 0) {
>          error_setg(errp, "iSCSI: Invalid BDRV_SECTOR_SIZE. "
> 

Thanks.

Paolo


WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Peter Wu <peter@lekensteyn.nl>, Peter Lieven <pl@kamp.de>,
	qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] block/iscsi: fix uninitialized variable
Date: Tue, 23 Dec 2014 17:31:07 +0100	[thread overview]
Message-ID: <549998CB.4050809@redhat.com> (raw)
In-Reply-To: <1419348641-20955-1-git-send-email-peter@lekensteyn.nl>



On 23/12/2014 16:30, Peter Wu wrote:
> 'ret' was never initialized in the success path.
> 
> Signed-off-by: Peter Wu <peter@lekensteyn.nl>
> ---
> Hi,
> 
> Found this warning when compiling with --enable-debug. This issue was previously
> fixed as part of Peter Lieven's patch series[1] but it never seemed to get
> merged.
> 
> Kinds regards,
> Peter
> 
>  [1]: https://lists.gnu.org/archive/html/qemu-devel/2014-03/msg04279.html
> ---
>  block/iscsi.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/block/iscsi.c b/block/iscsi.c
> index ed375fc..12ddbfb 100644
> --- a/block/iscsi.c
> +++ b/block/iscsi.c
> @@ -1286,7 +1286,7 @@ static int iscsi_open(BlockDriverState *bs, QDict *options, int flags,
>      QemuOpts *opts;
>      Error *local_err = NULL;
>      const char *filename;
> -    int i, ret;
> +    int i, ret = 0;
>  
>      if ((BDRV_SECTOR_SIZE % 512) != 0) {
>          error_setg(errp, "iSCSI: Invalid BDRV_SECTOR_SIZE. "
> 

Thanks.

Paolo

  reply	other threads:[~2014-12-23 16:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23 15:30 [Qemu-trivial] [PATCH] block/iscsi: fix uninitialized variable Peter Wu
2014-12-23 15:30 ` [Qemu-devel] " Peter Wu
2014-12-23 16:31 ` Paolo Bonzini [this message]
2014-12-23 16:31   ` Paolo Bonzini

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=549998CB.4050809@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=peter@lekensteyn.nl \
    --cc=pl@kamp.de \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@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 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.