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
This commit is contained in:
parent
b1771e3dc6
commit
2efbc4a68d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262978
@ -402,7 +402,7 @@ MPFloatingPointer( u_int32_t paddr, int where, mpfps_t* mpfpsp )
|
|||||||
mpfps_t mpfps;
|
mpfps_t mpfps;
|
||||||
|
|
||||||
/* map in mpfps structure*/
|
/* map in mpfps structure*/
|
||||||
*mpfpsp = mpfps = mapEntry( paddr, sizeof( mpfps ) );
|
*mpfpsp = mpfps = mapEntry( paddr, sizeof( *mpfps ) );
|
||||||
|
|
||||||
/* show its contents */
|
/* show its contents */
|
||||||
printf( "MP Floating Pointer Structure:\n\n" );
|
printf( "MP Floating Pointer Structure:\n\n" );
|
||||||
|
Loading…
Reference in New Issue
Block a user