Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58ec42b0 authored by Al Viro's avatar Al Viro
Browse files

[PATCH] don't pass nameidata to __ncp_lookup_validate()



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent a569c711
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -266,7 +266,7 @@ leave_me:;




static int
static int
__ncp_lookup_validate(struct dentry * dentry, struct nameidata *nd)
__ncp_lookup_validate(struct dentry *dentry)
{
{
	struct ncp_server *server;
	struct ncp_server *server;
	struct dentry *parent;
	struct dentry *parent;
@@ -340,7 +340,7 @@ ncp_lookup_validate(struct dentry * dentry, struct nameidata *nd)
{
{
	int res;
	int res;
	lock_kernel();
	lock_kernel();
	res = __ncp_lookup_validate(dentry, nd);
	res = __ncp_lookup_validate(dentry);
	unlock_kernel();
	unlock_kernel();
	return res;
	return res;
}
}