linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pata_sc1200: Fix crash on boot
@ 2009-10-06 15:07 Alan Cox
  2009-10-14  1:56 ` Andrew Morton
  2009-10-16 10:26 ` Jeff Garzik
  0 siblings, 2 replies; 9+ messages in thread
From: Alan Cox @ 2009-10-06 15:07 UTC (permalink / raw)
  To: jeff, linux-kernel

The SC1200 needs a NULL terminator or it may cause a crash on boot.

Bug #14227

Also correct a bogus comment as the driver had serializing added so can run
dual port.

Signed-off-by: Alan Cox <alan@linux.intel.com>
---

 drivers/ata/pata_sc1200.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


diff --git a/drivers/ata/pata_sc1200.c b/drivers/ata/pata_sc1200.c
index f49814d..3bbed83 100644
--- a/drivers/ata/pata_sc1200.c
+++ b/drivers/ata/pata_sc1200.c
@@ -235,8 +235,7 @@ static int sc1200_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 		.udma_mask = ATA_UDMA2,
 		.port_ops = &sc1200_port_ops
 	};
-	/* Can't enable port 2 yet, see top comments */
-	const struct ata_port_info *ppi[] = { &info, };
+	const struct ata_port_info *ppi[] = { &info, NULL };
 
 	return ata_pci_sff_init_one(dev, ppi, &sc1200_sht, NULL);
 }


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-10-16 10:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-06 15:07 [PATCH] pata_sc1200: Fix crash on boot Alan Cox
2009-10-14  1:56 ` Andrew Morton
2009-10-14  3:07   ` Alexandros C. Couloumbis
2009-10-14 12:00   ` Alan Cox
2009-10-14 12:12     ` Bartlomiej Zolnierkiewicz
2009-10-14 12:25       ` Alan Cox
2009-10-14 12:52       ` Jeff Garzik
2009-10-14 12:38   ` Alan Cox
2009-10-16 10:26 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).