From: Jesse Gross Date: Sat, 16 Jan 2010 14:45:45 +0000 (-0500) Subject: netdev-linux: Properly store netdev_dev pointer for RTNL callbacks. X-Git-Tag: v1.0.0~259^2~277 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=139faa31166c0b6ea78e09c46f184429250d76d7;p=sliver-openvswitch.git 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. --- 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;