software/libbase/memtest: Skip memtest_addr when size < 16KB.

This commit is contained in:
Florent Kermarrec 2022-03-11 15:28:34 +01:00
parent c851e74e09
commit 43cc2ff9bb

View file

@ -131,6 +131,10 @@ int memtest_addr(unsigned int *addr, unsigned long size, int random)
unsigned short seed_16;
unsigned short rdata;
/* Skip when size < 16KB */
if (size < 0x10000)
return 0;
errors = 0;
seed_16 = 1;