From owner-svn-src-all@FreeBSD.ORG Mon Mar 10 16:07:45 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 92C51A2F; Mon, 10 Mar 2014 16:07:45 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7FAF4BDB; Mon, 10 Mar 2014 16:07:45 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2AG7jJi028309; Mon, 10 Mar 2014 16:07:45 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2AG7jXv028308; Mon, 10 Mar 2014 16:07:45 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <201403101607.s2AG7jXv028308@svn.freebsd.org> From: John Baldwin Date: Mon, 10 Mar 2014 16:07:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262978 - head/usr.sbin/mptable X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2014 16:07:45 -0000 Author: jhb Date: Mon Mar 10 16:07:45 2014 New Revision: 262978 URL: http://svnweb.freebsd.org/changeset/base/262978 Log: Pass the size of the top-level table to map when mapping the table instead of the size of the pointer. Reported by: Coverity Coverity CID: 1147171 Modified: head/usr.sbin/mptable/mptable.c Modified: head/usr.sbin/mptable/mptable.c ============================================================================== --- head/usr.sbin/mptable/mptable.c Mon Mar 10 15:59:50 2014 (r262977) +++ head/usr.sbin/mptable/mptable.c Mon Mar 10 16:07:45 2014 (r262978) @@ -402,7 +402,7 @@ MPFloatingPointer( u_int32_t paddr, int mpfps_t mpfps; /* map in mpfps structure*/ - *mpfpsp = mpfps = mapEntry( paddr, sizeof( mpfps ) ); + *mpfpsp = mpfps = mapEntry( paddr, sizeof( *mpfps ) ); /* show its contents */ printf( "MP Floating Pointer Structure:\n\n" );