From: Alexey Dobriyan Date: Wed, 11 Oct 2006 08:22:06 +0000 (-0700) Subject: [PATCH] DAC960: use memmove for overlapping areas X-Git-Tag: v2.6.19-rc2~61 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=39913b31d0cd11b5b18a303e220c95ffbd9e1a88;p=linux-2.6-omap-h63xx.git [PATCH] DAC960: use memmove for overlapping areas Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/block/DAC960.h b/drivers/block/DAC960.h index cec539e601f..6148073532b 100644 --- a/drivers/block/DAC960.h +++ b/drivers/block/DAC960.h @@ -4379,8 +4379,8 @@ static inline void DAC960_P_To_PD_TranslateEnquiry(void *Enquiry) static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState) { memcpy(DeviceState + 2, DeviceState + 3, 1); - memcpy(DeviceState + 4, DeviceState + 5, 2); - memcpy(DeviceState + 6, DeviceState + 8, 4); + memmove(DeviceState + 4, DeviceState + 5, 2); + memmove(DeviceState + 6, DeviceState + 8, 4); } static inline