|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [qemu-dm] Check for null pointer in dma h
# HG changeset patch
# User Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx>
# Date 1177430530 -3600
# Node ID c1d3f4fbfacf7ea8eab9549823787f13efa2d976
# Parent 837d12d4d2d15be322b2fc9a1eb925ddfdcbd3d9
[qemu-dm] Check for null pointer in dma handler function pointer.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxxx>
---
tools/ioemu/hw/dma.c | 2 ++
1 files changed, 2 insertions(+)
diff -r 837d12d4d2d1 -r c1d3f4fbfacf tools/ioemu/hw/dma.c
--- a/tools/ioemu/hw/dma.c Tue Apr 24 17:02:09 2007 +0100
+++ b/tools/ioemu/hw/dma.c Tue Apr 24 17:02:10 2007 +0100
@@ -340,6 +340,8 @@ static void channel_run (int ncont, int
#endif
r = dma_controllers[ncont].regs + ichan;
+ if (r->transfer_handler == NULL)
+ return;
n = r->transfer_handler (r->opaque, ichan + (ncont << 2),
r->now[COUNT], (r->base[COUNT] + 1) << ncont);
r->now[COUNT] = n;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [qemu-dm] Check for null pointer in dma handler function pointer.,
Xen patchbot-unstable <=
|
|
|
|
|