/* release_open_intent - free up open intent resources @nd: pointer to nameidata  */
void release_open_intent(struct nameidata *nd)
/* release_open_intent - free up open intent resources @nd: pointer to nameidata  */
void release_open_intent(struct nameidata *nd)
{
	if (nd->intent.open.file->f_path.dentry == NULL)
		put_filp(nd->intent.open.file);
	else
		fput(nd->intent.open.file);
}