projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f877a18
)
uio_hv_generic: add missed sysfs_remove_bin_file
author
Chuhong Yuan
<hslester96@gmail.com>
Thu, 7 May 2020 15:13:43 +0000
(23:13 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:13:19 +0000
(16:13 +0200)
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: Chuhong Yuan <hslester96@gmail.com>
Link:
https://lore.kernel.org/r/20200507151343.792816-1-hslester96@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_hv_generic.c
patch
|
blob
|
history
diff --git
a/drivers/uio/uio_hv_generic.c
b/drivers/uio/uio_hv_generic.c
index
3c5169e
..
4dae232
100644
(file)
--- a/
drivers/uio/uio_hv_generic.c
+++ b/
drivers/uio/uio_hv_generic.c
@@
-361,6
+361,7
@@
hv_uio_remove(struct hv_device *dev)
if (!pdata)
return 0;
+ sysfs_remove_bin_file(&dev->channel->kobj, &ring_buffer_bin_attr);
uio_unregister_device(&pdata->info);
hv_uio_cleanup(dev, pdata);
hv_set_drvdata(dev, NULL);