Clear the scsipi_xfer's status byte before executing the command. This

fixes a condition where stale data can be left in the status byte, causing
user programs that interpret it to fail.

Fixes kern/4964 from Chris Jones <cjones@honors.montana.edu>.
This commit is contained in:
thorpej 1998-02-10 19:48:51 +00:00
parent ed9f037214
commit 6e899bb965

View File

@ -1,4 +1,4 @@
/* $NetBSD: scsipi_base.c,v 1.4 1997/10/18 19:51:02 thorpej Exp $ */
/* $NetBSD: scsipi_base.c,v 1.5 1998/02/10 19:48:51 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995, 1997 Charles M. Hannum. All rights reserved.
@ -355,6 +355,7 @@ scsipi_execute_xs(xs)
xs->flags &= ~ITSDONE;
xs->error = XS_NOERROR;
xs->resid = xs->datalen;
xs->status = 0;
retry:
/*