From: Håvard Skinnemoen Date: Fri, 15 Sep 2006 15:19:31 +0000 (+0200) Subject: MTD: Fix bug in fixup_convert_atmel_pri X-Git-Tag: v2.6.18~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de591dacf3034977b3fb94b61d08240c8b35c39d;p=pandora-kernel.git MTD: Fix bug in fixup_convert_atmel_pri The memset() in fixup_convert_atmel_pri is supposed to zero out everything except the first 5 bytes in *extp, but it ends up zeroing out something way outside the struct instead. Fix this potentially dangerous code by casting the pointer to char * before doing arithmetic. Signed-off-by: Håvard Skinnemoen Signed-off-by: David Woodhouse --- Reading git-diff-tree failed