From 139faa31166c0b6ea78e09c46f184429250d76d7 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Sat, 16 Jan 2010 09:45:45 -0500 Subject: [PATCH] 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. --- lib/netdev-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2