]> git.baikalelectronics.ru Git - kernel.git/commit
openvswitch: Use nla_memcpy() to memcpy() data from attributes
authorThomas Graf <tgraf@suug.ch>
Fri, 29 Mar 2013 13:46:48 +0000 (14:46 +0100)
committerJesse Gross <jesse@nicira.com>
Sat, 30 Mar 2013 00:53:46 +0000 (17:53 -0700)
commitca922291ee5bf39ad44ff85cae68d0c1981454dd
tree1dddb07c73f7e8ece015c414ea517b51eddfa182
parente7e052a6508ec8d385b226503984b7ad627c0bb1
openvswitch: Use nla_memcpy() to memcpy() data from attributes

Less error prone as it takes into account the length of both the
destination buffer and the source attribute and documents when
data is copied from an attribute.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/datapath.c
net/openvswitch/flow.c