]> git.ipfire.org Git - people/ms/linux.git/commit
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:23:40 +0000 (04:23 -0800)
commitbbcb20aaca3bbbfcb8c53c3587620d59320f805f
tree070e03ea7a58bba28e21c5399ee49c05125cf99f
parentad61d4c760976880cf5a9f2e14f6cbb487bef59a
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