linux/arch/tile
Chris Metcalf 3edabee2ed arch/tile: fix memchr() not to dereference memory for zero length
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>
2010-11-24 13:57:42 -05:00
..
configs defconfig reduction 2010-08-14 22:26:53 +02:00
include asm-generic/stat.h: support 64-bit file time_t for stat() 2010-11-01 15:31:29 -04:00
kernel arch/tile: make glibc's sysconf(_SC_NPROCESSORS_CONF) work correctly 2010-11-24 13:42:15 -05:00
kvm arch/tile: parameterize system PLs to support KVM port 2010-10-15 15:38:09 -04:00
lib arch/tile: fix memchr() not to dereference memory for zero length 2010-11-24 13:57:42 -05:00
mm BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
Kbuild arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
Kconfig Merge branch 'kconfig' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6 2010-10-28 16:16:39 -07:00
Kconfig.debug arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
Makefile arch/tile: parameterize system PLs to support KVM port 2010-10-15 15:38:09 -04:00