mirror of https://gitee.com/openkylin/linux.git
3edabee2ed
This change fixes a bug that memchr() will read the first word of the source even if the length is zero. Ironically, the code was originally written with a test to avoid exactly this problem, but to make the code conform to Linux coding standards with all declarations preceding all statements, the first load from memory was moved up above that test as the initial value for a variable. The change just moves all the variable declarations to the top of the file, with no initializers, so that the test can also be at the top of the file. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com> |
||
---|---|---|
.. | ||
Makefile | ||
atomic_32.c | ||
atomic_asm_32.S | ||
cacheflush.c | ||
checksum.c | ||
cpumask.c | ||
delay.c | ||
exports.c | ||
mb_incoherent.S | ||
memchr_32.c | ||
memcpy_32.S | ||
memcpy_tile64.c | ||
memmove.c | ||
memset_32.c | ||
spinlock_32.c | ||
spinlock_common.h | ||
strchr_32.c | ||
strlen_32.c | ||
uaccess.c | ||
usercopy_32.S |