PRINT_CALLER(fname, fxn, line);
pr_debug(" CND1: lower_file of type %s\n",
file->f_path.dentry->d_sb->s_type->name);
- BUG();
}
}
}
void *cookie)
{
struct dentry *parent;
+ char *buf;
unionfs_read_lock(dentry->d_sb, UNIONFS_SMUTEX_CHILD);
parent = unionfs_lock_parent(dentry, UNIONFS_DMUTEX_PARENT);
"unionfs: put_link failed to revalidate dentry\n");
unionfs_check_dentry(dentry);
+#if 0
+ /* XXX: can't run this check b/c this fxn can receive a poisoned 'nd' PTR */
unionfs_check_nd(nd);
- kfree(nd_get_link(nd));
+#endif
+ buf = nd_get_link(nd);
+ if (!IS_ERR(buf))
+ kfree(buf);
unionfs_unlock_dentry(dentry);
unionfs_unlock_parent(dentry, parent);
unionfs_read_unlock(dentry->d_sb);