mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
According to alex_ionescu, callers of IoAllocateIrp should set the
Tail.Overlay.Thread member themselves in the new Irp. These calls to IoAllocateIrp were not followed by setting the thread. svn path=/trunk/; revision=10502
This commit is contained in:
parent
7dd153e40e
commit
e9fc7ea7df
1 changed files with 3 additions and 1 deletions
|
@ -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.54 2004/06/10 07:56:42 hbirr Exp $
|
/* $Id: class2.c,v 1.55 2004/08/12 05:59:25 arty Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1887,6 +1887,7 @@ ScsiClassReleaseQueue(IN PDEVICE_OBJECT DeviceObject)
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
/* Attach SRB to the IRP */
|
/* Attach SRB to the IRP */
|
||||||
|
Irp->Tail.Overlay.Thread = PsGetCurrentThread();
|
||||||
Stack = IoGetNextIrpStackLocation(Irp);
|
Stack = IoGetNextIrpStackLocation(Irp);
|
||||||
Stack->MajorFunction = IRP_MJ_SCSI;
|
Stack->MajorFunction = IRP_MJ_SCSI;
|
||||||
Stack->Parameters.Scsi.Srb = Srb;
|
Stack->Parameters.Scsi.Srb = Srb;
|
||||||
|
@ -2201,6 +2202,7 @@ ScsiClassSplitRequest(IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
/* Initialize the new IRP */
|
/* Initialize the new IRP */
|
||||||
NewIrp->MdlAddress = Irp->MdlAddress;
|
NewIrp->MdlAddress = Irp->MdlAddress;
|
||||||
|
NewIrp->Tail.Overlay.Thread = PsGetCurrentThread();
|
||||||
|
|
||||||
IoSetNextIrpStackLocation(NewIrp);
|
IoSetNextIrpStackLocation(NewIrp);
|
||||||
NewStack = IoGetCurrentIrpStackLocation(NewIrp);
|
NewStack = IoGetCurrentIrpStackLocation(NewIrp);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue