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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=139faa31166c0b6ea78e09c46f184429250d76d7;p=openvswitch 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 ca452b59..85ef62a3 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;