Date: Wed, 20 Apr 2016 01:00:13 +0000 (UTC) From: "Conrad E. Meyer" <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298318 - head/sys/compat/linprocfs Message-ID: <201604200100.u3K10DD4018859@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Wed Apr 20 01:00:13 2016 New Revision: 298318 URL: https://svnweb.freebsd.org/changeset/base/298318 Log: linprocfs: Don't print uninitialized values Reported by: Coverity CID: 1354624 Sponsored by: EMC / Isilon Storage Division Modified: head/sys/compat/linprocfs/linprocfs.c Modified: head/sys/compat/linprocfs/linprocfs.c ============================================================================== --- head/sys/compat/linprocfs/linprocfs.c Wed Apr 20 00:55:35 2016 (r298317) +++ head/sys/compat/linprocfs/linprocfs.c Wed Apr 20 01:00:13 2016 (r298318) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604200100.u3K10DD4018859>