diff options
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r-- | net/core/net-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index d954b56b4e47..d03f2c9750fa 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -1263,7 +1263,7 @@ static void netdev_release(struct device *d) | |||
1263 | BUG_ON(dev->reg_state != NETREG_RELEASED); | 1263 | BUG_ON(dev->reg_state != NETREG_RELEASED); |
1264 | 1264 | ||
1265 | kfree(dev->ifalias); | 1265 | kfree(dev->ifalias); |
1266 | kfree((char *)dev - dev->padded); | 1266 | netdev_freemem(dev); |
1267 | } | 1267 | } |
1268 | 1268 | ||
1269 | static const void *net_namespace(struct device *d) | 1269 | static const void *net_namespace(struct device *d) |