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;
}
const struct device_type vlandev_device_type = {
.name = "VLANDEV",
.config_params = &vlandev_attr_list,
+ .keep_link_status = true,
.create = vlandev_create,
.config_init = vlandev_config_init,