Change a panic to an error return.

There was a panic() in the NFS server's write operation that didn't
need to be a panic() and could just be an error return.
This patch makes that change.
Found by code inspection during development of the pNFS service.

MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2017-09-24 20:05:48 +00:00
parent a523de2365
commit ce8d06fe87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323978

View File

@ -921,7 +921,7 @@ nfsrvd_write(struct nfsrv_descript *nd, __unused int isdgram,
nd->nd_md, nd->nd_dpos, nd->nd_cred, p);
error = nfsm_advance(nd, NFSM_RNDUP(retlen), -1);
if (error)
panic("nfsrv_write mbuf");
goto nfsmout;
}
if (nd->nd_flag & ND_NFSV4)
aftat_ret = 0;