]> 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)
commit80e5fe5f26ed20c524a8d020f04aef0cfe3c7117
treef63b489a95edfd71781772370511fe16bb398fb0
parentefb288e5b67895bd7b96d7cf646a853a4e642371
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