[ros-dev] NTOSKRNL bugcheck when clicking on "My Computer C disk
icon"
Hartmut Birr
hartmut.birr at gmx.de
Mon Apr 4 18:32:38 CEST 2005
Gge wrote:
> With svn 14668 , Ros bugchecks when I click on the "my computer " icon
> and o then on the "C" disk drive icon as per debug messages below.
> This is a regression and it is always reproductible .
> I cannot say exactly when it has been broken.
> Any idea ?
It may be a result of my changes in 14418. The mdl is only allocated if
the read/write length is greater 0. Can you add my patch and try it again?
- Hartmut
-------------- next part --------------
Index: drivers/fs/vfat/rw.c
===================================================================
--- drivers/fs/vfat/rw.c (revision 14480)
+++ drivers/fs/vfat/rw.c (working copy)
@@ -617,6 +617,7 @@
}
if (Length == 0)
{
+ DPRINT1("Length is 0\n");
IrpContext->Irp->IoStatus.Information = 0;
Status = STATUS_SUCCESS;
goto ByeBye;
Index: ntoskrnl/io/cleanup.c
===================================================================
--- ntoskrnl/io/cleanup.c (revision 14480)
+++ ntoskrnl/io/cleanup.c (working copy)
@@ -1,4 +1,4 @@
-/* $Id:$
+/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@@ -109,7 +109,10 @@
if (DeviceObject->Flags & DO_DIRECT_IO)
{
- IoFreeMdl(Irp->MdlAddress);
+ if (Irp->MdlAddress)
+ {
+ IoFreeMdl(Irp->MdlAddress);
+ }
}
}
More information about the Ros-dev
mailing list