From owner-cvs-src@FreeBSD.ORG Tue May 1 10:47:09 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A22D216A401; Tue, 1 May 2007 10:47:09 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 816A313C43E; Tue, 1 May 2007 10:47:09 +0000 (UTC) (envelope-from wkoszek@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l41Al9SQ032639; Tue, 1 May 2007 10:47:09 GMT (envelope-from wkoszek@repoman.freebsd.org) Received: (from wkoszek@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l41Al939032638; Tue, 1 May 2007 10:47:09 GMT (envelope-from wkoszek) Message-Id: <200705011047.l41Al939032638@repoman.freebsd.org> From: "Wojciech A. Koszek" Date: Tue, 1 May 2007 10:47:09 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libgeom geom_getxml.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2007 10:47:09 -0000 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