summaryrefslogtreecommitdiff
path: root/procfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'procfs.c')
-rw-r--r--procfs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/procfs.c b/procfs.c
index 755e051..573bb72 100644
--- a/procfs.c
+++ b/procfs.c
@@ -66,6 +66,14 @@ fail:
error_t procfs_get_contents (struct node *np, void **data, size_t *data_len)
{
+ if (np->nn->ops->enable_refresh_hack_and_break_readdir && np->nn->contents)
+ {
+ if (np->nn->ops->cleanup_contents)
+ np->nn->ops->cleanup_contents (np->nn->hook, np->nn->contents,
+ np->nn->contents_len);
+ np->nn->contents = NULL;
+ }
+
if (! np->nn->contents && np->nn->ops->get_contents)
{
void *contents;