[ovs-dev] lib/netdev-windows.c: typo in call to memcpy()
diff mbox

Message ID 1441043968-6872-1-git-send-email-nithin@vmware.com
State Accepted
Headers show

Commit Message

Nithin Raju Aug. 31, 2015, 5:59 p.m. UTC
Signed-off-by: Nithin Raju <nithin@vmware.com>
---
 lib/netdev-windows.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Ben Pfaff Aug. 31, 2015, 8:03 p.m. UTC | #1
On Mon, Aug 31, 2015 at 10:59:28AM -0700, Nithin Raju wrote:
> Signed-off-by: Nithin Raju <nithin@vmware.com>

Thanks, applied.

Patch
diff mbox

diff --git a/lib/netdev-windows.c b/lib/netdev-windows.c
index 51d088a..aef9d2c 100644
--- a/lib/netdev-windows.c
+++ b/lib/netdev-windows.c
@@ -248,7 +248,7 @@  netdev_windows_netdev_from_ofpbuf(struct netdev_windows_netdev_info *info,
     info->port_no = nl_attr_get_odp_port(a[OVS_WIN_NETDEV_ATTR_PORT_NO]);
     info->ovs_type = nl_attr_get_u32(a[OVS_WIN_NETDEV_ATTR_TYPE]);
     info->name = nl_attr_get_string(a[OVS_WIN_NETDEV_ATTR_NAME]);
-    memcpy(info->mac_address, nl_attr_get_unspec(a[OVS_WIN_NETDEV_ATTR_MAC_ADDR],
+    memcpy(&info->mac_address, nl_attr_get_unspec(a[OVS_WIN_NETDEV_ATTR_MAC_ADDR],
                sizeof(info->mac_address)), sizeof(info->mac_address));
     info->mtu = nl_attr_get_u32(a[OVS_WIN_NETDEV_ATTR_MTU]);
     info->ifi_flags = nl_attr_get_u32(a[OVS_WIN_NETDEV_ATTR_IF_FLAGS]);