projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTOSKNRL] Only allocate a MDL if we have an output length
[reactos.git]
/
ntoskrnl
/
io
/
iomgr
/
iofunc.c
diff --git
a/ntoskrnl/io/iomgr/iofunc.c
b/ntoskrnl/io/iomgr/iofunc.c
index
fa48869
..
d119f85
100644
(file)
--- a/
ntoskrnl/io/iomgr/iofunc.c
+++ b/
ntoskrnl/io/iomgr/iofunc.c
@@
-580,7
+580,7
@@
IopDeviceFsIoControl(IN HANDLE DeviceHandle,
}
/* Check if we got an output buffer */
- if (OutputBuffer)
+ if (OutputBuffer
Length
)
{
/* Allocate the System Buffer */
Irp->MdlAddress = IoAllocateMdl(OutputBuffer,