aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2003-08-27 15:27:56 +0000
committerSøren Schmidt <sos@FreeBSD.org>2003-08-27 15:27:56 +0000
commit61f07fc6cafb404a0c5136e349d9633486ec35e8 (patch)
treeafbcdbaff443ee800bc21029f320ad61b2ade77d /sys/dev
parent1d68703f6ab5233372b59542b0b9a6cf28ea55c6 (diff)
downloadsrc-61f07fc6cafb404a0c5136e349d9633486ec35e8.tar.gz
src-61f07fc6cafb404a0c5136e349d9633486ec35e8.zip
Return the translated result code from ATA/ATAPI commands.
Notes
Notes: svn path=/head/; revision=119504
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/ata-all.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c
index fa2d16f1bb44..71260fd0347a 100644
--- a/sys/dev/ata/ata-all.c
+++ b/sys/dev/ata/ata-all.c
@@ -437,8 +437,8 @@ ata_ioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td)
ata_queue_request(request);
- if (request->error)
- iocmd->u.request.error = request->error;
+ if (request->result)
+ iocmd->u.request.error = request->result;
else {
if (iocmd->u.request.flags & ATA_CMD_READ)
error = copyout(buf,