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)
commite39d6c66527d97c95809a4170872ddc8ce9a81ea
tree2d2493187f430245110bd640c8a5c990aaf865d7
parent6059d948a8984fb3d1a7976a91f70b5debb16244
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