Fix kernel crashes with gcc 4.7+

ARM: 7668/1: fix memset-related crashes caused by recent GCC (4.7.2) optimizations