cvs commit: src/lib/libgeom geom_getxml.c
Wojciech A. Koszek
wkoszek at FreeBSD.org
Tue May 1 10:47:09 UTC 2007
wkoszek 2007-05-01 10:47:09 UTC
FreeBSD src repository
Second call of sysctl() is used to gather a proper size of a memory chunk
needed to hold the GEOM tree. At this point, pointer 'p' has an improper
value (as it was used previously), and we're getting EFAULT. Fix this
functionality by passing NULL instead of 'p'.
This fixes mdconfig(8) -l output with high number of md(4) devices.
Found by: kris
Reviewed by: phk
Revision Changes Path
1.2 +1 -1 src/lib/libgeom/geom_getxml.c
More information about the cvs-all