MTD: Fix bug in fixup_convert_atmel_pri
authorHåvard Skinnemoen <hskinnemoen@atmel.com>
Fri, 15 Sep 2006 15:19:31 +0000 (17:19 +0200)
committerDavid Woodhouse <dwmw2@infradead.org>
Sat, 16 Sep 2006 12:54:17 +0000 (13:54 +0100)
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 <hskinnemoen@atmel.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>

No differences found