]> git.baikalelectronics.ru Git - kernel.git/commit
connector: use 'size' everywhere in cn_netlink_send()
authorMathias Krause <minipli@googlemail.com>
Mon, 30 Sep 2013 20:03:08 +0000 (22:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2013 20:03:50 +0000 (16:03 -0400)
commit38a1003c3002c5cc831aba43d51fa7289db52901
treef63b489a95edfd71781772370511fe16bb398fb0
parent5c9b1705a84a40af9300c3c3d0a2e3db886731bc
connector: use 'size' everywhere in cn_netlink_send()

We calculated the size for the netlink message buffer as size. Use size
in the memcpy() call as well instead of recalculating it.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c