X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fide.c;h=4ad0fa9da5255d51bcf9e83a042c85511faa5e1c;hb=107d8f06c7083f58fc96d781efb0226edd82c7d9;hp=a31aec2a2558854d787633597ea068b99edb7577;hpb=e5e029575affad90c19ca038a3b780820535d421;p=palacios.git diff --git a/palacios/src/devices/ide.c b/palacios/src/devices/ide.c index a31aec2..4ad0fa9 100644 --- a/palacios/src/devices/ide.c +++ b/palacios/src/devices/ide.c @@ -390,7 +390,7 @@ static void print_prd_table(struct vm_device * dev, struct ide_channel * channel static int dma_read(struct guest_info * core, struct vm_device * dev, struct ide_channel * channel) { struct ide_drive * drive = get_selected_drive(channel); // This is at top level scope to do the EOT test at the end - struct ide_dma_prd prd_entry; + struct ide_dma_prd prd_entry = {}; uint_t bytes_left = drive->transfer_length; // Read in the data buffer.... @@ -530,7 +530,7 @@ static int dma_read(struct guest_info * core, struct vm_device * dev, struct ide static int dma_write(struct guest_info * core, struct vm_device * dev, struct ide_channel * channel) { struct ide_drive * drive = get_selected_drive(channel); // This is at top level scope to do the EOT test at the end - struct ide_dma_prd prd_entry; + struct ide_dma_prd prd_entry = {}; uint_t bytes_left = drive->transfer_length;