Work around a crash when timer signal occurs before main loop, original patch by 武田 俊也.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3820 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
balrog 2007-12-16 12:39:38 +00:00
parent bd464c2eef
commit 4f8eb8daeb
2 changed files with 7 additions and 7 deletions

View file

@ -332,8 +332,6 @@ struct pxa2xx_keypad_s *pxa27x_keypad_init(target_phys_addr_t base,
void pxa27x_register_keypad(struct pxa2xx_keypad_s *kp, struct keymap *map,
int size)
{
kp->map = (struct keymap *) qemu_mallocz(sizeof(struct keymap) * size);
if(!map || size < 0x80) {
fprintf(stderr, "%s - No PXA keypad map defined\n", __FUNCTION__);
exit(-1);