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

Commit afcf6792 authored by Al Viro's avatar Al Viro
Browse files

nfsd: fix error value on allocation failure in nfsd4_decode_test_stateid()



PTR_ERR(NULL) is going to be 0...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 02f5fde5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1392,7 +1392,7 @@ nfsd4_decode_test_stateid(struct nfsd4_compoundargs *argp, struct nfsd4_test_sta
	for (i = 0; i < test_stateid->ts_num_ids; i++) {
		stateid = kmalloc(sizeof(struct nfsd4_test_stateid_id), GFP_KERNEL);
		if (!stateid) {
			status = PTR_ERR(stateid);
			status = nfserrno(-ENOMEM);
			goto out;
		}