Can I take a lock in file object

Hello all,
i am a newbie in filesystem development. i am facing a problem.
in irp_mj_close, i try to deallocate ccb which is allocated in create, when
the file reference goes to 0, but when i do this the system starts to crash
and majority of times it fails in ExFreePoolWithTag. i don’t know why this
is happening. i am never going outside my allocated buffers.if i don’t free
the pool it works fine. is it something that i should take a lock on file
object , and then try to free the buffers ?? besides how can i take a lock
on the file object passed to me ??

thanks in advance.
kiran


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