From: Uwe Koziolek Date: Sun, 11 Sep 2005 15:03:35 +0000 (+0200) Subject: [PATCH] sata_sis: uninitialized variable X-Git-Tag: v2.6.14-rc2~40 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=668e4bc7229c1866f65f3bef6ab011f8c9034089;p=linux-2.6 [PATCH] sata_sis: uninitialized variable There is an uninitialized variable issue in sata_sis.c Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/sata_sis.c b/drivers/scsi/sata_sis.c index 237c1986f0..b227e51d12 100644 --- a/drivers/scsi/sata_sis.c +++ b/drivers/scsi/sata_sis.c @@ -161,7 +161,7 @@ static u32 sis_scr_cfg_read (struct ata_port *ap, unsigned int sc_reg) { struct pci_dev *pdev = to_pci_dev(ap->host_set->dev); unsigned int cfg_addr = get_scr_cfg_addr(ap->port_no, sc_reg, pdev->device); - u32 val, val2; + u32 val, val2 = 0; u8 pmr; if (sc_reg == SCR_ERROR) /* doesn't exist in PCI cfg space */