Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] DAC960: use memmove for overlapping areas

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Alexey Dobriyan and committed by
Linus Torvalds
39913b31 2ecd05ae

+2 -2
+2 -2
drivers/block/DAC960.h
··· 4379 4379 static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState) 4380 4380 { 4381 4381 memcpy(DeviceState + 2, DeviceState + 3, 1); 4382 - memcpy(DeviceState + 4, DeviceState + 5, 2); 4383 - memcpy(DeviceState + 6, DeviceState + 8, 4); 4382 + memmove(DeviceState + 4, DeviceState + 5, 2); 4383 + memmove(DeviceState + 6, DeviceState + 8, 4); 4384 4384 } 4385 4385 4386 4386 static inline