diff options
| author | Colin Percival <cperciva@FreeBSD.org> | 2005-05-06 02:50:00 +0000 |
|---|---|---|
| committer | Colin Percival <cperciva@FreeBSD.org> | 2005-05-06 02:50:00 +0000 |
| commit | fd94099ec208321d81b8e997b185156b9af828d4 (patch) | |
| tree | b49c2e551390ab52afef3a68a53ec4b29faefa23 /sys/kern/subr_rman.c | |
| parent | 9b2dc15ca0fb622177f64aec7470545687d11030 (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_rman.c')
| -rw-r--r-- | sys/kern/subr_rman.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c index 61d50a1f0747..31ffa02461bf 100644 --- a/sys/kern/subr_rman.c +++ b/sys/kern/subr_rman.c @@ -761,6 +761,7 @@ sysctl_rman(SYSCTL_HANDLER_ARGS) * resource manager. */ if (res_idx == -1) { + bzero(&urm, sizeof(urm)); urm.rm_handle = (uintptr_t)rm; strlcpy(urm.rm_descr, rm->rm_descr, RM_TEXTLEN); urm.rm_start = rm->rm_start; @@ -776,6 +777,7 @@ sysctl_rman(SYSCTL_HANDLER_ARGS) */ TAILQ_FOREACH(res, &rm->rm_list, r_link) { if (res_idx-- == 0) { + bzero(&ures, sizeof(ures)); ures.r_handle = (uintptr_t)res; ures.r_parent = (uintptr_t)res->r_rm; ures.r_device = (uintptr_t)res->r_dev; |
