diff options
author | mav <mav@FreeBSD.org> | 2009-08-18 09:27:17 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-08-18 09:27:17 +0000 |
commit | 30e392190d6b0ca162e9d9285d42def751a191d8 (patch) | |
tree | e8d2d862d6b8485591bd733c2b0ebc2776e03cb3 /sys/cam | |
parent | d0dca34aa6fd79b979fadd77bd958a71873412d7 (diff) | |
download | FreeBSD-src-30e392190d6b0ca162e9d9285d42def751a191d8.zip FreeBSD-src-30e392190d6b0ca162e9d9285d42def751a191d8.tar.gz |
Fix copy/paste bug, that requests data read during ATA device probe sequence
for ATA_SETFEATURES/ATA_SF_SETXFER command which by definition transfers no
data. Most of controllers are irrelevant to this bug, but some nVidia's
doesn't.
Tested on: current@
Approved by: re (kib)
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/ata/ata_xpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/ata/ata_xpt.c b/sys/cam/ata/ata_xpt.c index 0116b5b..0be44fc 100644 --- a/sys/cam/ata/ata_xpt.c +++ b/sys/cam/ata/ata_xpt.c @@ -370,10 +370,10 @@ probestart(struct cam_periph *periph, union ccb *start_ccb) cam_fill_ataio(ataio, 1, probedone, - /*flags*/CAM_DIR_IN, - MSG_SIMPLE_Q_TAG, - /*data_ptr*/(u_int8_t *)ident_buf, - /*dxfer_len*/sizeof(struct ata_params), + /*flags*/CAM_DIR_NONE, + 0, + /*data_ptr*/NULL, + /*dxfer_len*/0, 30 * 1000); ata_36bit_cmd(ataio, ATA_SETFEATURES, ATA_SF_SETXFER, 0, ata_max_mode(ident_buf, ATA_UDMA6, ATA_UDMA6)); |