From 2efbc4a68d44130f0ad656e2ffbb846d740037cf Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 10 Mar 2014 16:07:45 +0000 Subject: [PATCH] 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 --- usr.sbin/mptable/mptable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c index fcc12c020d5b..2c29934c337b 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" );