inet_diag: Do not use RTA_PUT() macros
authorThomas Graf <tgraf@suug.ch>
Tue, 26 Jun 2012 23:36:12 +0000 (23:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 22:36:44 +0000 (15:36 -0700)
commit6e277ed59a45544786f4c4643a69527138c24fc1
tree272ab01155287f9b6156c48c0c19c562ea5a5fcd
parent7b46866dd0a6fe38ecee523eb27eda9c8f484dc5
inet_diag: Do not use RTA_PUT() macros

Also, no need to trim on nlmsg_put() failure, nothing has been added
yet.  We also want to use nlmsg_end(), nlmsg_new() and nlmsg_free().

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c