svn commit: r262978 - head/usr.sbin/mptable
John Baldwin
jhb at FreeBSD.org
Mon Mar 10 16:07:45 UTC 2014
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" );
More information about the svn-src-head
mailing list