none
Issue with StorportCopyMemory in Storport Miniport driver RRS feed

  • Question

  • Hi All,

    I am facing a strange issue on AMD PCs. I have written a Storport Miniport driver. In HWBuildio, I am copying SRB->DataBuffer to my Device extension for the size of 256bytes and anyway Mapbuffer = True and It is in Dispatch Level. Before copying the data to my device extension, I printed the Buffer which is proper. But after StorPortCopyMemory/StorPortMoveMemory, SRB->DataBuffer contents are 0 and also Device Extension copied data also 0.

    Steps:

    1. Print Srb->DataBuffer (Proper Data)

    2. Copy Srb->DataBuffer to Device Extension

    3. Print Srb->DataBUffer (No Proper Data in (Srb->DataBuffer and Device Extension), Contents are 0)

    Strange points are:
    * this happens only in AMD PC.
    * this happens rarely.

    Any clue will be very helpful.

    Regards,
    Sudhanshu


    Sudhanshu

    Thursday, December 20, 2018 6:28 AM