NFSD: nfserrno(-ENOMEM) is nfserr_jukebox
[ Upstream commit bb4d842722b84a2731257054b6405f2d866fc5f3 ] Suggested-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
8ce03085cc
commit
02bc4d514c
@@ -1810,7 +1810,7 @@ nfsd4_decode_test_stateid(struct nfsd4_compoundargs *argp, struct nfsd4_test_sta
|
|||||||
for (i = 0; i < test_stateid->ts_num_ids; i++) {
|
for (i = 0; i < test_stateid->ts_num_ids; i++) {
|
||||||
stateid = svcxdr_tmpalloc(argp, sizeof(*stateid));
|
stateid = svcxdr_tmpalloc(argp, sizeof(*stateid));
|
||||||
if (!stateid)
|
if (!stateid)
|
||||||
return nfserrno(-ENOMEM); /* XXX: not jukebox? */
|
return nfserr_jukebox;
|
||||||
INIT_LIST_HEAD(&stateid->ts_id_list);
|
INIT_LIST_HEAD(&stateid->ts_id_list);
|
||||||
list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list);
|
list_add_tail(&stateid->ts_id_list, &test_stateid->ts_stateid_list);
|
||||||
status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid);
|
status = nfsd4_decode_stateid4(argp, &stateid->ts_id_stateid);
|
||||||
@@ -1933,7 +1933,7 @@ nfsd4_decode_copy(struct nfsd4_compoundargs *argp, struct nfsd4_copy *copy)
|
|||||||
|
|
||||||
ns_dummy = kmalloc(sizeof(struct nl4_server), GFP_KERNEL);
|
ns_dummy = kmalloc(sizeof(struct nl4_server), GFP_KERNEL);
|
||||||
if (ns_dummy == NULL)
|
if (ns_dummy == NULL)
|
||||||
return nfserrno(-ENOMEM); /* XXX: jukebox? */
|
return nfserr_jukebox;
|
||||||
for (i = 0; i < count - 1; i++) {
|
for (i = 0; i < count - 1; i++) {
|
||||||
status = nfsd4_decode_nl4_server(argp, ns_dummy);
|
status = nfsd4_decode_nl4_server(argp, ns_dummy);
|
||||||
if (status) {
|
if (status) {
|
||||||
|
Reference in New Issue
Block a user