[PATCH] libata: fix missing classes[] initialization in ata_bus_probe()
authorTejun Heo <htejun@gmail.com>
Sat, 11 Mar 2006 15:57:39 +0000 (00:57 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 12 Mar 2006 00:04:49 +0000 (19:04 -0500)
commit2061a47a9b9530a9523e51167c996307db951c31
treecaf1ecb16e7030017fd14ea1f2f32b29b74090f3
parent75f554bc139461a5a926fad6a6fa90433a00a117
[PATCH] libata: fix missing classes[] initialization in ata_bus_probe()

ata_bus_probe() didn't initialize classes[] properly with
ATA_DEV_UNKNOWN.  As ->probe_reset() is allowed to leave @classes
alone when no device is present, this results in garbage class values.
ATM, the only affected driver is ata_piix.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/scsi/libata-core.c