mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:06:04 +00:00
[USBSTOR] Do not leak fields of DeviceExtensions upon device removal
This commit is contained in:
parent
fa530aee92
commit
40b25634ff
2 changed files with 24 additions and 1 deletions
|
@ -575,6 +575,10 @@ USBSTOR_PdoHandlePnp(
|
|||
bDelete = FALSE;
|
||||
}
|
||||
|
||||
// clean up the device extension
|
||||
ASSERT(DeviceExtension->InquiryData);
|
||||
ExFreePoolWithTag(DeviceExtension->InquiryData, USB_STOR_TAG);
|
||||
|
||||
Irp->IoStatus.Status = STATUS_SUCCESS;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
|
||||
|
@ -658,7 +662,7 @@ USBSTOR_SyncCompletionRoutine(
|
|||
|
||||
/*
|
||||
* @name USBSTOR_SendInternalCdb
|
||||
*
|
||||
*
|
||||
* Issues an internal SCSI request to device.
|
||||
* The request is sent in a synchronous way.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue