From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: check batadv_orig_hash_add_if() return code
Date: Thu, 5 Jul 2012 23:47:53 +0200 [thread overview]
Message-ID: <201207052347.54053.lindner_marek@yahoo.de> (raw)
In-Reply-To: <1341175915-26856-1-git-send-email-siwu@hrz.tu-chemnitz.de>
On Sunday, July 01, 2012 22:51:55 Simon Wunderlich wrote:
> If this call fails, some of the orig_nodes spaces may have been
> resized for the increased number of interface, and some may not.
> If we would just continue with the larger number of interfaces,
> this would lead to access to not allocated memory later.
>
> We better check the return code, and don't add the interface if
> no memory is available. OTOH, keeping some of the orig_nodes
> with too much memory allocated should hurt no one (except for
> a few too many bytes allocated).
>
> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
> ---
> hard-interface.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
Applied in revision c4499bb.
Thanks,
Marek
prev parent reply other threads:[~2012-07-05 21:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-01 20:51 [B.A.T.M.A.N.] [PATCH] batman-adv: check batadv_orig_hash_add_if() return code Simon Wunderlich
2012-07-05 21:47 ` Marek Lindner [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=201207052347.54053.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.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