- Don't retry, if the request fails with SRB_STATUS_INVALID_REQUEST.

svn path=/trunk/; revision=8464
This commit is contained in:
Hartmut Birr 2004-02-29 11:21:58 +00:00
parent fc1748325f
commit 9a5bc1ce43

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
/* $Id: class2.c,v 1.48 2004/02/10 16:22:56 navaraf Exp $ /* $Id: class2.c,v 1.49 2004/02/29 11:21:58 hbirr Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -1228,6 +1228,11 @@ ScsiClassInterpretSenseInfo(IN PDEVICE_OBJECT DeviceObject,
Retry = FALSE; Retry = FALSE;
break; break;
case SRB_STATUS_INVALID_REQUEST:
*Status = STATUS_INVALID_DEVICE_REQUEST;
Retry = FALSE;
break;
default: default:
DPRINT1("SCSI error (SRB status: %x)\n", DPRINT1("SCSI error (SRB status: %x)\n",
SRB_STATUS(Srb->SrbStatus)); SRB_STATUS(Srb->SrbStatus));