Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2007 10:47:09 +0000 (UTC)
From:      "Wojciech A. Koszek" <wkoszek@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libgeom geom_getxml.c
Message-ID:  <200705011047.l41Al939032638@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
wkoszek     2007-05-01 10:47:09 UTC

  FreeBSD src repository

  Modified files:
    lib/libgeom          geom_getxml.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200705011047.l41Al939032638>