1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-07 13:14:51 +00:00

linprocfs: Don't print uninitialized values

Reported by:	Coverity
CID:		1354624
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2016-04-20 01:00:13 +00:00
parent 46df5db84e
commit e78adba3fe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298318

View File

@ -1422,7 +1422,7 @@ linprocfs_doproclimits(PFS_FILL_ARGS)
"kern.sigqueue.max_pending_per_proc",
&res, &size, 0, 0, 0, 0);
if (error != 0)
break;
goto out;
rl.rlim_cur = res;
rl.rlim_max = res;
break;
@ -1430,7 +1430,7 @@ linprocfs_doproclimits(PFS_FILL_ARGS)
error = kernel_sysctlbyname(td,
"kern.ipc.msgmnb", &res, &size, 0, 0, 0, 0);
if (error != 0)
break;
goto out;
rl.rlim_cur = res;
rl.rlim_max = res;
break;
@ -1452,6 +1452,7 @@ linprocfs_doproclimits(PFS_FILL_ARGS)
li->desc, (unsigned long long)rl.rlim_cur,
(unsigned long long)rl.rlim_max, li->unit);
}
out:
lim_free(limp);
return (error);
}