Messages in this thread | ![/](/images/icornerl.gif) | | Date | Wed, 26 Mar 2003 19:53:17 -0800 | From | David Brownell <> | Subject | 2.5.recent: device_remove_file() doesn't |
| |
I've noticed that recent kernels don't clean up device attribute files correctly when they're removed. Instead, they're left in the directory with a refcount of zero.
That refcount stays even when the file is recreated later; and the contents can be read. Delete them again, and now the refcount is 65535 ... though now reading the contents may cause oopsing.
This worked correctly at some point last month: the file no longer appeared in sysfs after deletion.
Got Patch?
- Dave
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| ![\](/images/icornerr.gif) |