]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Use proper buffer size in nla_memcpy
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Mon, 28 Mar 2016 10:08:59 +0000 (18:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Mar 2016 15:37:14 +0000 (11:37 -0400)
commitb40f92041d7b65ee71aafd13a431765c051e4b26
treee7deb5ade34f3415b907a4cc633305361af66070
parentab39bad69481d5fc84c5c89f6cec8347b2082433
openvswitch: Use proper buffer size in nla_memcpy

For the input parameter count, it's better to use the size
of destination buffer size, as nla_memcpy would take into
account the length of the source netlink attribute when
a data is copied from an attribute.

Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/conntrack.c