All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ell@lists.01.org
Subject: Re: [PATCH] genl: Initialize used memory to avoid valgrind report
Date: Mon, 02 Feb 2015 09:32:48 -0600	[thread overview]
Message-ID: <54CF98A0.6000800@gmail.com> (raw)
In-Reply-To: <1422612674-6844-1-git-send-email-jukka.rissanen@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1108 bytes --]

Hi Jukka,

On 01/30/2015 04:11 AM, Jukka Rissanen wrote:
> Valgrind reports following error for uninitialized memory usage:
>
>   ==4725== Syscall param socketcall.sendto(msg) points to uninitialised byte(s)
>   ==4725==    at 0x33F5EF6B5D: send (in /usr/lib64/libc-2.17.so)
>   ==4725==    by 0x40BF0E: can_write_data (genl.c:314)
>   ==4725==    by 0x417806: io_callback (io.c:138)
>   ==4725==    by 0x40A282: l_main_run (main.c:346)
>   ==4725==    by 0x401F69: main (main.c:160)
>   ==4725==  Address 0x4c3d092 is 18 bytes inside a block of size 40 alloc'd
>   ==4725==    at 0x4A06409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
>   ==4725==    by 0x40817D: l_malloc (util.c:62)
>   ==4725==    by 0x40C46A: msg_alloc.constprop.13 (genl.c:243)
>   ==4725==    by 0x40D454: l_genl_family_new (genl.c:641)
>   ==4725==    by 0x405A44: wiphy_init (wiphy.c:1492)
>   ==4725==    by 0x401EDD: main (main.c:154)
>   ==4725==
> ---
>   ell/genl.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>

Patch has been applied, thanks.

Regards,
-Denis


      reply	other threads:[~2015-02-02 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 10:11 [PATCH] genl: Initialize used memory to avoid valgrind report Jukka Rissanen
2015-02-02 15:32 ` Denis Kenzior [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=54CF98A0.6000800@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ell@lists.01.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.