From: Marek Lindner <mareklindner@neomailbox.ch>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Antonio Quartulli <antonio@meshcoding.com>
Subject: Re: [B.A.T.M.A.N.] [PATCH] batman-adv: fix compat macro for kstrtou32
Date: Sun, 24 Nov 2013 00:45:06 +0800 [thread overview]
Message-ID: <8502078.3ioMQf3Zdu@diderot> (raw)
In-Reply-To: <1385141910-2670-1-git-send-email-antonio@meshcoding.com>
[-- Attachment #1: Type: text/plain, Size: 628 bytes --]
On Friday 22 November 2013 18:38:30 Antonio Quartulli wrote:
> The macro previously introduced in the compat code to replace
> kstrtou32() may not work properly in case of a too large
> user input.
>
> Fix it by using a temporary variable of the proper length
> and then cast the result.
>
> Possibly return -ERANGE is the result is too big to fix a 32bit
> long variable.
>
> Cc: Matthias Schiffer <mschiffer@universe-factory.net>
> Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
> ---
> compat.h | 12 ++++++++++--
> 1 file changed, 10 insertions(+), 2 deletions(-)
Applied in revision 28dab26.
Thanks,
Marek
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
prev parent reply other threads:[~2013-11-23 16:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 17:38 [B.A.T.M.A.N.] [PATCH] batman-adv: fix compat macro for kstrtou32 Antonio Quartulli
2013-11-23 16:45 ` 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=8502078.3ioMQf3Zdu@diderot \
--to=mareklindner@neomailbox.ch \
--cc=antonio@meshcoding.com \
--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 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.