net: fix nlmsg len size for skb when error bit is set.
authorJohn Fastabend <john.r.fastabend@intel.com>
Fri, 25 Sep 2009 13:11:44 +0000 (13:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2009 03:16:11 +0000 (20:16 -0700)
commit5dba93aedfc6906b27791c4a1136b177beae25b7
tree2d2493187f430245110bd640c8a5c990aaf865d7
parentfc482cc54e56bde012585905eb0f3565bec18ff5
net: fix nlmsg len size for skb when error bit is set.

Currently, the nlmsg->len field is not set correctly in  netlink_ack()
for ack messages that include the nlmsg of the error frame.  This
corrects the length field passed to __nlmsg_put to use the correct
payload size.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c