bst = container_of(dev, struct bridge_state, dev);
vlist_flush_all(&bst->members);
+ free(bst->config_data);
free(bst);
}
BUILD_BUG_ON(sizeof(diff) < __DEV_ATTR_MAX / 8);
bst = container_of(dev, struct bridge_state, dev);
+ attr = blob_memdup(attr);
blobmsg_parse(device_attr_list.params, __DEV_ATTR_MAX, tb_dev,
blob_data(attr), blob_len(attr));
bridge_config_init(dev);
}
+ free(bst->config_data);
bst->config_data = attr;
return ret;
}
mvdev = container_of(dev, struct macvlan_device, dev);
device_remove_user(&mvdev->parent);
+ free(mvdev->config_data);
free(mvdev);
}
struct macvlan_device *mvdev;
mvdev = container_of(dev, struct macvlan_device, dev);
+ attr = blob_memdup(attr);
blobmsg_parse(device_attr_list.params, __DEV_ATTR_MAX, tb_dev,
blob_data(attr), blob_len(attr));
macvlan_config_init(dev);
}
+ free(mvdev->config_data);
mvdev->config_data = attr;
return ret;
}
mvdev = container_of(dev, struct vlandev_device, dev);
device_remove_user(&mvdev->parent);
+ free(mvdev->config_data);
free(mvdev);
}
struct vlandev_device *mvdev;
mvdev = container_of(dev, struct vlandev_device, dev);
+ attr = blob_memdup(attr);
blobmsg_parse(device_attr_list.params, __DEV_ATTR_MAX, tb_dev,
blob_data(attr), blob_len(attr));
vlandev_config_init(dev);
}
+ free(mvdev->config_data);
mvdev->config_data = attr;
return ret;
}