[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c
From: |
Robert Reif |
Subject: |
[Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c |
Date: |
Wed, 02 Jan 2008 21:29:48 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2) Gecko/20040308 |
diff -p -u -r1.5 ptimer.c
--- hw/ptimer.c 17 Nov 2007 17:14:47 -0000 1.5
+++ hw/ptimer.c 3 Jan 2008 02:27:18 -0000
@@ -185,6 +185,8 @@ ptimer_state *ptimer_init(QEMUBH *bh)
ptimer_state *s;
s = (ptimer_state *)qemu_mallocz(sizeof(ptimer_state));
+ if (!s)
+ return NULL;
s->bh = bh;
s->timer = qemu_new_timer(vm_clock, ptimer_tick, s);
return s;
- [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c,
Robert Reif <=
- Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c, Paul Brook, 2008/01/02
- Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c, Robert Reif, 2008/01/02
- Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c, Rob Landley, 2008/01/04
- Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c, Paul Brook, 2008/01/04
- Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c, Rob Landley, 2008/01/04
- Re: [Qemu-devel] [PATCH] fix possible NULL pointer use in hw/ptimer.c, Markus Hitter, 2008/01/05