source: trunk/packages/xen-3.1/xen-3.1/tools/ioemu/patches/qemu-dma-null-pointer-check @ 34

Last change on this file since 34 was 34, checked in by hartmans, 17 years ago

Add xen and xen-common

File size: 493 bytes
Line 
1Index: ioemu/hw/dma.c
2===================================================================
3--- ioemu.orig/hw/dma.c 2007-05-02 10:30:05.000000000 +0100
4+++ ioemu/hw/dma.c      2007-05-03 14:59:53.000000000 +0100
5@@ -340,6 +340,8 @@
6 #endif
7 
8     r = dma_controllers[ncont].regs + ichan;
9+    if (r->transfer_handler == NULL)
10+       return;
11     n = r->transfer_handler (r->opaque, ichan + (ncont << 2),
12                              r->now[COUNT], (r->base[COUNT] + 1) << ncont);
13     r->now[COUNT] = n;
Note: See TracBrowser for help on using the repository browser.