]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NETLINK]: Do precise netlink message allocations where possible
authorThomas Graf <tgraf@suug.ch>
Fri, 10 Nov 2006 22:10:15 +0000 (14:10 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:22:11 +0000 (21:22 -0800)
commit339bf98ffc6a8d8eb16fc532ac57ffbced2f8a68
tree499ad948863d2753ca10283dcf006ad28954538e
parenta94f723d595ee085f81b1788d18e031af7eeba91
[NETLINK]: Do precise netlink message allocations where possible

Account for the netlink message header size directly in nlmsg_new()
instead of relying on the caller calculate it correctly.

Replaces error handling of message construction functions when
constructing notifications with bug traps since a failure implies
a bug in calculating the size of the skb.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Acked-by: Paul Moore <paul.moore@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
21 files changed:
include/linux/netlink.h
include/net/fib_rules.h
include/net/netlink.h
kernel/taskstats.c
net/bridge/br_netlink.c
net/core/fib_rules.c
net/core/neighbour.c
net/core/rtnetlink.c
net/decnet/dn_rules.c
net/decnet/dn_table.c
net/ipv4/devinet.c
net/ipv4/fib_rules.c
net/ipv4/fib_semantics.c
net/ipv6/addrconf.c
net/ipv6/fib6_rules.c
net/ipv6/route.c
net/netlabel/netlabel_cipso_v4.c
net/netlabel/netlabel_mgmt.c
net/netlabel/netlabel_unlabeled.c
net/netlink/af_netlink.c
net/netlink/genetlink.c