aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/subr_module.c
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2020-10-08 18:29:17 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2020-10-08 18:29:17 +0000
commit841dad02e9077fe0d0f8a68b35fbc3812fd2c681 (patch)
tree332b52b14ebbba6e866fb3c1c37a5abd6a9adbd6 /sys/kern/subr_module.c
parent22e6a670868487bc17e36270eb34f34074693b6a (diff)
Notes
Diffstat (limited to 'sys/kern/subr_module.c')
-rw-r--r--sys/kern/subr_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_module.c b/sys/kern/subr_module.c
index 7c6d8d5358b6..07fac96fa8b0 100644
--- a/sys/kern/subr_module.c
+++ b/sys/kern/subr_module.c
@@ -496,7 +496,7 @@ preload_dump_internal(struct sbuf *sbp)
*/
bptr = (uint32_t *)preload_metadata;
sbuf_putc(sbp, '\n');
- while (bptr[0] != MODINFO_END || bptr[0] != MODINFO_END) {
+ while (bptr[0] != MODINFO_END || bptr[1] != MODINFO_END) {
sbuf_printf(sbp, " %p:\n", bptr);
type = *bptr++;
len = *bptr++;