unix_diag: Do not use RTA_PUT() macros
authorThomas Graf <tgraf@suug.ch>
Tue, 26 Jun 2012 23:36:10 +0000 (23:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 22:36:43 +0000 (15:36 -0700)
commit4245375db87767aacaad16f07040b5d89a9056c8
tree246bf4a4b41ae1dd28f1b82137b598d4f669120d
parentc074da2810c118b3812f32d6754bd9ead2f169e7
unix_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/unix/diag.c