From: Pablo Neira Ayuso Date: Tue, 19 May 2009 22:27:55 +0000 (-0700) Subject: net: use NLMSG_DEFAULT_SIZE in nlmsg_new() allocations X-Git-Tag: v2.6.31-rc1~330^2~351 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd2120ca0da9108e53f8db2fe57ab74fca76fd56;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed