2.5.recent: device_remove_file() doesn't

From: David Brownell (david-b@pacbell.net)
Date: Wed Mar 26 2003 - 22:53:17 EST


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/



This archive was generated by hypermail 2b29 : Mon Mar 31 2003 - 22:00:26 EST