diff options
author | nsouch <nsouch@FreeBSD.org> | 2001-01-25 13:07:55 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 2001-01-25 13:07:55 +0000 |
commit | adc8a8326dba1df1fd250baf0ed39fa4a045f1fc (patch) | |
tree | 291afbcf9d932305ad737ccd7cc9d57ee12fd2e1 /sys/dev/ppbus | |
parent | 9d926b25dc59df4c3e22f01ebe570bc237f84cf3 (diff) | |
download | FreeBSD-src-adc8a8326dba1df1fd250baf0ed39fa4a045f1fc.zip FreeBSD-src-adc8a8326dba1df1fd250baf0ed39fa4a045f1fc.tar.gz |
Discard extra status information if -1. This has been breaking the
PS/2 mode for ZIP+ drives for a long time. Thanks Jonathon.
Submitted by: j mckitrick <jcm@FreeBSD-uk.eu.org>
Diffstat (limited to 'sys/dev/ppbus')
-rw-r--r-- | sys/dev/ppbus/immio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ppbus/immio.c b/sys/dev/ppbus/immio.c index 05665f00..fca5374 100644 --- a/sys/dev/ppbus/immio.c +++ b/sys/dev/ppbus/immio.c @@ -1,5 +1,6 @@ /*- * Copyright (c) 1998, 1999 Nicolas Souchu + * Copyright (c) 2001 Alcove - Nicolas Souchu * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -777,6 +778,10 @@ imm_do_scsi(struct vpoio_data *vpo, int host, int target, char *command, *ret = VP0_EOTHER+2; goto error; } + /* Experience showed that we should discard this */ + if (h == -1) + h = 0; + *result = ((int) h << 8) | ((int) l & 0xff); error: |