Thread (7 messages) flat view 7 messages, 2 authors, 2013-03-21

Re: [PATCH 1/3] net: fix *_DIAG_MAX constants

From: David Miller <davem@davemloft.net>
Date: 2013-03-21 16:37:20
Also in: lkml

From: Andrey Vagin <redacted>
Date: Thu, 21 Mar 2013 20:33:46 +0400
Follow the common pattern and define *_DIAG_MAX like:

        [...]
        __XXX_DIAG_MAX,
};

Because everyone is used to do:

        struct nlattr *attrs[XXX_DIAG_MAX+1];

        nla_parse([...], XXX_DIAG_MAX, [...]

Reported-by: Thomas Graf <tgraf@suug.ch>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Pavel Emelyanov <redacted>
Cc: Eric Dumazet <edumazet@google.com>
Cc: "Paul E. McKenney" <redacted>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrey Vagin <redacted>
Applied to 'net' and queued up for -stable.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help