can: dev: fix nlmsg size calculation in can_get_size()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 5 Oct 2013 19:25:17 +0000 (21:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Nov 2013 12:31:01 +0000 (04:31 -0800)
commit42fc155b9fe58a8885b76136ebdb7b5e376740b6
tree1917e0677f02307f0548d3cdda24e0b37bfdf9a1
parentb15e22da6eb11f54ef53bec9b9e9adbc4fba1609
can: dev: fix nlmsg size calculation in can_get_size()

[ Upstream commit fe119a05f8ca481623a8d02efcc984332e612528 ]

This patch fixes the calculation of the nlmsg size, by adding the missing
nla_total_size().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/can/dev.c