mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
Changed the ordering for allocating the inquiry buffer and zeroing the srb in ScsiPortInquire.
svn path=/trunk/; revision=3231
This commit is contained in:
parent
3886e2f66b
commit
4f0371f4af
1 changed files with 2 additions and 2 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: scsiport.c,v 1.16 2002/06/06 23:20:08 ekohl Exp $
|
/* $Id: scsiport.c,v 1.17 2002/07/15 18:25:17 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -1233,9 +1233,9 @@ ScsiPortInquire(PSCSI_PORT_DEVICE_EXTENSION DeviceExtension)
|
||||||
((PUCHAR)AdapterInfo + sizeof(SCSI_ADAPTER_BUS_INFO) +
|
((PUCHAR)AdapterInfo + sizeof(SCSI_ADAPTER_BUS_INFO) +
|
||||||
(sizeof(SCSI_BUS_DATA) * (AdapterInfo->NumberOfBuses - 1)));
|
(sizeof(SCSI_BUS_DATA) * (AdapterInfo->NumberOfBuses - 1)));
|
||||||
|
|
||||||
Srb.DataBuffer = ExAllocatePool(NonPagedPool, 256);
|
|
||||||
RtlZeroMemory(&Srb,
|
RtlZeroMemory(&Srb,
|
||||||
sizeof(SCSI_REQUEST_BLOCK));
|
sizeof(SCSI_REQUEST_BLOCK));
|
||||||
|
Srb.DataBuffer = ExAllocatePool(NonPagedPool, 256);
|
||||||
Srb.Function = SRB_FUNCTION_EXECUTE_SCSI;
|
Srb.Function = SRB_FUNCTION_EXECUTE_SCSI;
|
||||||
Srb.DataTransferLength = 256;
|
Srb.DataTransferLength = 256;
|
||||||
Srb.Cdb[0] = SCSIOP_INQUIRY;
|
Srb.Cdb[0] = SCSIOP_INQUIRY;
|
||||||
|
|
Loading…
Reference in a new issue