Pablo Neira Ayuso fd2120ca0d net: use NLMSG_DEFAULT_SIZE in nlmsg_new() allocations
nlmsg_new() adds the size of the netlink header to the value
that has been passed as parameter. If NLMSG_GOODSIZE is selected,
we request an allocation of one memory page plus the size of the
header. Instead, NLMSG_DEFAULT_SIZE should be used since it
already substracts the size of the Netlink header.

I have the impression that the similar naming in both constant
is error prone when using it with nlmsg_new(). This is already
documented in include/net/netlink.h

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-05-19 15:36:16 -07:00
..
2009-03-21 19:19:16 -07:00
2009-03-21 19:19:14 -07:00
2008-05-02 16:21:52 -07:00
2008-12-14 23:18:30 -08:00
2008-11-03 18:21:05 -08:00
2008-12-10 15:18:31 -08:00
2007-07-10 22:16:43 -07:00
2008-12-10 15:18:31 -08:00