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

Commit 69d4b443 authored by Aneesh Kumar K.V's avatar Aneesh Kumar K.V Committed by Eric Van Hensbergen
Browse files

net/9p: Handle the server returned error properly



We need to get the negative errno value in the kernel
even for dotl.

Signed-off-by: default avatarAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 7751bdb3
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -460,7 +460,8 @@ static int p9_check_errors(struct p9_client *c, struct p9_req_t *req)
			return err;
			return err;
		}
		}


		if (p9_is_proto_dotu(c))
		if (p9_is_proto_dotu(c) ||
			p9_is_proto_dotl(c))
			err = -ecode;
			err = -ecode;


		if (!err || !IS_ERR_VALUE(err))
		if (!err || !IS_ERR_VALUE(err))