Commit 7066c2f6 authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Greg Kroah-Hartman

uio_hv_generic: add missed sysfs_remove_bin_file

This driver calls sysfs_create_bin_file() in probe, but forgets to
call sysfs_remove_bin_file() in remove.
Add the missed call to fix it.
Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Link: https://lore.kernel.org/r/20200507151343.792816-1-hslester96@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f877a18c
...@@ -361,6 +361,7 @@ hv_uio_remove(struct hv_device *dev) ...@@ -361,6 +361,7 @@ hv_uio_remove(struct hv_device *dev)
if (!pdata) if (!pdata)
return 0; return 0;
sysfs_remove_bin_file(&dev->channel->kobj, &ring_buffer_bin_attr);
uio_unregister_device(&pdata->info); uio_unregister_device(&pdata->info);
hv_uio_cleanup(dev, pdata); hv_uio_cleanup(dev, pdata);
hv_set_drvdata(dev, NULL); hv_set_drvdata(dev, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment