Upon a rare occasion my driver is crashing with bugcheck 1E in the hander for
AcquireFileForNtCreateSection. It is crashing on this check:
deviceObject = FileObject->DeviceObject->Vpb->DeviceObject
(it seems like the Vpb pointer is either null or bad). This shouldn’t be,
should it? Sfilter does not make a check for a valid pointer. Am I missing
something?
Thanks for any tips.
Neil
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Which file system is it for? Not all file systems have VPB (in fact, only
media file systems have a VPB) so it IS acceptable for this field to be
NULL.
Wouldn’t it be better to code this as:
deviceObject = FileObject->DeviceObject->Vpb ?
FileObject->DeviceObject->Vpb->DeviceObject : FileObject->DeviceObject;
This ensures you get the FSD device object whether it is a physical file
system or some other type of file system.
Regards,
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Neil Weicher [mailto:xxxxx@netlib.com]
Sent: Friday, December 15, 2000 10:03 PM
To: File Systems Developers
Subject: [ntfsd] AcquireFileForNtCreateSection fall down go BOOM!
Upon a rare occasion my driver is crashing with bugcheck 1E in the hander
for
AcquireFileForNtCreateSection. It is crashing on this check:
deviceObject = FileObject->DeviceObject->Vpb->DeviceObject
(it seems like the Vpb pointer is either null or bad). This shouldn’t be,
should it? Sfilter does not make a check for a valid pointer. Am I missing
something?
Thanks for any tips.
Neil
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntfsd as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntfsd-$subst(‘Recip.MemberIDChar’)@lists.osr.com