summaryrefslogtreecommitdiff
path: root/sys/dev/microcode/ral/microcode.h
diff options
context:
space:
mode:
authorkre <kre@NetBSD.org>2018-05-30 05:09:11 +0000
committerkre <kre@NetBSD.org>2018-05-30 05:09:11 +0000
commit04c694b0a6e36b4526643d422ece7f450f7487de (patch)
treecb1262d150a8c07532dbdea608c0c49ba9360821 /sys/dev/microcode/ral/microcode.h
parentbb2d073bf1a9292141a327d0d3083c3b0fa6bc6b (diff)
The bytes_transfer_piod_read_auxv test uses 4096 for the size param
to bytes_transfer() which asserted that the size is < the size of 512 AuxInfo structs. On a 32 bit system, an AuxInfo is 8 bytes, and 512 AuxInfo structs is thus 4096 bytes, and 4096 is not < 4096, so the assertion failed. It would probably work as a <= assert, but I am not confident enough with this test case to make that call, so instead increase the array size to be 513 instead, 4096 is < 513*8 so happiness should return and all should be right with the world. At least for this one test. (There was no problem on 64 bit systems as AuxInfo is bigger there.)
Diffstat (limited to 'sys/dev/microcode/ral/microcode.h')
0 files changed, 0 insertions, 0 deletions