• Weili Qian's avatar
    crypto: hisilicon/qm - alloc buffer to set and get xqc · 5b90073d
    Weili Qian authored
    If the temporarily applied memory is used to set or get the xqc
    information, the driver releases the memory immediately after the
    hardware mailbox operation time exceeds the driver waiting time.
    However, the hardware does not cancel the operation, so the hardware
    may write data to released memory.
    
    Therefore, when the driver is bound to a device, the driver reserves
    memory for the xqc configuration. The subsequent xqc configuration
    uses the reserved memory to prevent hardware from accessing the
    released memory.
    Signed-off-by: default avatarWeili Qian <qianweili@huawei.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    5b90073d
qm_common.h 1.2 KB