#include <linux/fcntl.h>
#include <linux/namei.h>
#include <linux/proc_fs.h>
+#include <linux/vs_base.h>
#include <linux/vserver/inode.h>
#include <linux/vserver/debug.h>
#include <asm/namei.h>
if (error)
goto exit_dput;
error = __do_follow_link(&path, nd);
- if (error)
+ if (error) {
+ /* Does someone understand code flow here? Or it is only
+ * me so stupid? Anathema to whoever designed this non-sense
+ * with "intent.open".
+ */
+ release_open_intent(nd);
return error;
+ }
nd->flags &= ~LOOKUP_PARENT;
if (nd->last_type == LAST_BIND)
goto ok;