diff options
author | jhb <jhb@FreeBSD.org> | 2014-03-10 16:07:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2014-03-10 16:07:45 +0000 |
commit | 5ca7c663ea0c20c0e5eb580417fbb8b113d5833d (patch) | |
tree | 3c7baa784b5a7c73432d2796c7466b95502e6f62 | |
parent | fd69f37e3ea0e29222f9103819d17bf85fb34c17 (diff) | |
download | FreeBSD-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.c | 2 |
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" ); |