linprocfs_doproclimits: Initialize error return before use

Reported by:	Coverity
CID:		1354623
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2016-04-20 01:03:06 +00:00
parent e78adba3fe
commit 8d340432aa

View File

@ -1403,6 +1403,8 @@ linprocfs_doproclimits(PFS_FILL_ARGS)
ssize_t size;
int res, error;
error = 0;
PROC_LOCK(p);
limp = lim_hold(p->p_limit);
PROC_UNLOCK(p);