linprocfs_doproclimits: Initialize error return before use
Reported by: Coverity CID: 1354623 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
e78adba3fe
commit
8d340432aa
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user