summaryrefslogtreecommitdiff
path: root/lib/netdev-linux.c
diff options
context:
space:
mode:
authorJesse Gross <jesse@nicira.com>2010-01-16 09:45:45 -0500
committerJesse Gross <jesse@nicira.com>2010-01-16 09:50:35 -0500
commit139faa31166c0b6ea78e09c46f184429250d76d7 (patch)
tree4d96d237ab45dd3e3db7f5926f5013ae881ec31f /lib/netdev-linux.c
parent56244b81016f4d60082976845f296f98111d16a3 (diff)
downloadopenvswitch-139faa31166c0b6ea78e09c46f184429250d76d7.tar.gz
netdev-linux: Properly store netdev_dev pointer for RTNL callbacks.
We were storing a struct netdev_dev_linux ** instead of a netdev_dev_linux * in the cache map. This prevented the cache from being invalidated on changes such as link status.
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r--lib/netdev-linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index ca452b593..85ef62a39 100644
--- a/lib/netdev-linux.c
+++ b/lib/netdev-linux.c
@@ -582,7 +582,7 @@ netdev_linux_create_system(const char *name, const char *type UNUSED,
}
netdev_dev = xzalloc(sizeof *netdev_dev);
- netdev_dev->shash_node = shash_add(&cache_map, name, &netdev_dev);
+ netdev_dev->shash_node = shash_add(&cache_map, name, netdev_dev);
netdev_dev_init(&netdev_dev->netdev_dev, name, &netdev_linux_class);
*netdev_devp = &netdev_dev->netdev_dev;