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

Commit 8d75da8a authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd4: fix minor memory leak



There's no need to allocate this cred more than once.

Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent ccdb357c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -525,6 +525,8 @@ static struct rpc_cred *callback_cred;

int set_callback_cred(void)
{
	if (callback_cred)
		return 0;
	callback_cred = rpc_lookup_machine_cred();
	if (!callback_cred)
		return -ENOMEM;