X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fide.c;h=4ad0fa9da5255d51bcf9e83a042c85511faa5e1c;hb=b1a5e7177b66fa319c896492d87f6276508bcbce;hp=a31aec2a2558854d787633597ea068b99edb7577;hpb=506ce8412af316f361b7629a87af6672a87585dd;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;