[PATCH] libata: fix ->phy_reset class code handling in ata_bus_probe()
authorTejun Heo <htejun@gmail.com>
Mon, 15 May 2006 11:57:30 +0000 (20:57 +0900)
committerTejun Heo <htejun@gmail.com>
Mon, 15 May 2006 11:57:30 +0000 (20:57 +0900)
commitf8c2c4202d86e14ca03b7adc7ebcb30fc74b24e1
treeacd1428c4cf8f6b2370db54f368309143774e72a
parent6cd727b14f1a6cdcb088d1067c1ba0ba124806a7
[PATCH] libata: fix ->phy_reset class code handling in ata_bus_probe()

ata_bus_probe() doesn't clear dev->class after ->phy_reset().  This
can result in falsely enabled devices if probing fails.  Clear
dev->class to ATA_DEV_UNKNOWN after fetching it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/scsi/libata-core.c