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" );
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to