Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2014 16:07:45 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262978 - head/usr.sbin/mptable
Message-ID:  <201403101607.s2AG7jXv028308@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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" );



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