can: Use correct type in sizeof() in nla_put()
authorMarek Vasut <marex@denx.de>
Fri, 30 Oct 2015 12:48:19 +0000 (13:48 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 30 Oct 2015 13:33:26 +0000 (14:33 +0100)
commit562b103a21974c2f9cd67514d110f918bb3e1796
tree930ff41bc842773490cd6d172d7ee77abb6bcf5a
parent89bc7848a91bc99532f5c21b2885472ba710f249
can: Use correct type in sizeof() in nla_put()

The sizeof() is invoked on an incorrect variable, likely due to some
copy-paste error, and this might result in memory corruption. Fix this.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: netdev@vger.kernel.org
Cc: linux-stable <stable@vger.kernel.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/dev.c