RxRegisterMinirdr and DeviceName

Hi everyone.

Am I missing something in the doc or this is a bug in RxRegisterMinirdr? It
looks like RDBSS lib doesn’t copy that parameter (well, at least Buffer part
of it) and reuses the pointer that has been passed to RxRegisterMinirdr. In
my case I saw a BSOD in FsRtlRegisterUncProvider with PF in NP area. The
guilty part was pointer to devname’s buffer that used to be in INIT (or
alike) data segment that has been (thanks to verifier!) long gone before
this call happened. So, is this an intended RxRegisterMinirdr behavior, a
bug in it or I’m missing something else?

TIA,

Vladimir