We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85aa8dd commit e83458fCopy full SHA for e83458f
fs/nfs/nfs4proc.c
@@ -4018,7 +4018,7 @@ static int _nfs4_discover_trunking(struct nfs_server *server,
4018
4019
page = alloc_page(GFP_KERNEL);
4020
if (!page)
4021
- return -ENOMEM;
+ goto out_put_cred;
4022
locations = kmalloc(sizeof(struct nfs4_fs_locations), GFP_KERNEL);
4023
if (!locations)
4024
goto out_free;
@@ -4040,6 +4040,8 @@ static int _nfs4_discover_trunking(struct nfs_server *server,
4040
kfree(locations);
4041
out_free:
4042
__free_page(page);
4043
+out_put_cred:
4044
+ put_cred(cred);
4045
return status;
4046
}
4047
0 commit comments