mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-18 22:15:46 +01:00
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:
parent
a523de2365
commit
ce8d06fe87
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=323978
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user