aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdt/fdt_common.c
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2016-03-01 09:45:27 +0000
committerAndrew Turner <andrew@FreeBSD.org>2016-03-01 09:45:27 +0000
commita43760692bf3c2305ba84e3672dfdec42835c1f2 (patch)
treebc4ad1157eb2058ca56bd7f32f3079bfc7dff5ef /sys/dev/fdt/fdt_common.c
parentb2552c46b60e55bfa2db5a19937d09d3b0e66623 (diff)
Notes
Diffstat (limited to 'sys/dev/fdt/fdt_common.c')
-rw-r--r--sys/dev/fdt/fdt_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/fdt/fdt_common.c b/sys/dev/fdt/fdt_common.c
index 4360fa134458d..b435551d89c89 100644
--- a/sys/dev/fdt/fdt_common.c
+++ b/sys/dev/fdt/fdt_common.c
@@ -705,7 +705,8 @@ fdt_get_mem_regions(struct mem_region *mr, int *mrcnt, u_long *memsize)
}
*mrcnt = i;
- *memsize = memory_size;
+ if (memsize != NULL)
+ *memsize = memory_size;
rv = 0;
out:
return (rv);