commit | de591dacf3034977b3fb94b61d08240c8b35c39d | [log] [tgz] |
---|---|---|
author | Håvard Skinnemoen <hskinnemoen@atmel.com> | Fri Sep 15 17:19:31 2006 +0200 |
committer | David Woodhouse <dwmw2@infradead.org> | Sat Sep 16 13:54:17 2006 +0100 |
tree | dea9eb00d70b85c5bafba142ee0ea77369f4e4a5 | |
parent | d882687c51b52424a56992578ce7636b3f3c8d41 [diff] |
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 <hskinnemoen@atmel.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>