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

Commit d4bb527e authored by Stanislav Kinsbursky's avatar Stanislav Kinsbursky Committed by J. Bruce Fields
Browse files

nfsd: use passed cache_detail pointer expkey_parse()



Using of hard-coded svc_expkey_cache pointer in expkey_parse() looks redundant.
Moreover, global cache will be replaced with per-net instance soon.

Signed-off-by: default avatarStanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 33dcc481
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -163,7 +163,7 @@ static int expkey_parse(struct cache_detail *cd, char *mesg, int mlen)
	cache_flush();
	cache_flush();
 out:
 out:
	if (ek)
	if (ek)
		cache_put(&ek->h, &svc_expkey_cache);
		cache_put(&ek->h, cd);
	if (dom)
	if (dom)
		auth_domain_put(dom);
		auth_domain_put(dom);
	kfree(buf);
	kfree(buf);