arm: fix malloc type mismatch