summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-03-10 16:07:45 +0000
committerjhb <jhb@FreeBSD.org>2014-03-10 16:07:45 +0000
commit5ca7c663ea0c20c0e5eb580417fbb8b113d5833d (patch)
tree3c7baa784b5a7c73432d2796c7466b95502e6f62
parentfd69f37e3ea0e29222f9103819d17bf85fb34c17 (diff)
downloadFreeBSD-src-5ca7c663ea0c20c0e5eb580417fbb8b113d5833d.zip
FreeBSD-src-5ca7c663ea0c20c0e5eb580417fbb8b113d5833d.tar.gz
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
-rw-r--r--usr.sbin/mptable/mptable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c
index fcc12c0..2c29934 100644
--- a/usr.sbin/mptable/mptable.c
+++ b/usr.sbin/mptable/mptable.c
@@ -402,7 +402,7 @@ MPFloatingPointer( u_int32_t paddr, int where, mpfps_t* mpfpsp )
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" );
OpenPOWER on IntegriCloud