• Tejun Heo's avatar
    libata: fix device iteration bugs · 4a9c7b33
    Tejun Heo authored
    There were several places where only enabled devices should be
    iterated over but device enabledness wasn't checked.
    
    * IDENTIFY data 40 wire check in cable_is_40wire()
    * xfer_mode/ncq_enabled saving in ata_scsi_error()
    * DUBIOUS_XFER handling in ata_set_mode()
    
    While at it, reformat comments in cable_is_40wire().
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
    4a9c7b33
libata-core.c 164 KB