04.08.2023 01:21, Michael S. Tsirkin wrote:
From: zhenwei pi <pizhen...@bytedance.com>

Generally guest side should discover which services the device is
able to offer, then do requests on device.

However it's also possible to break this rule in a guest. Handle
unexpected request here to avoid NULL pointer dereference.

Fixes: e7a775fd ('cryptodev: Account statistics')
Cc: Gonglei <arei.gong...@huawei.com>
Cc: Mauro Matteo Cascella <mcasc...@redhat.com>
Cc: Xiao Lei <nop.leix...@gmail.com>
Cc: Yongkang Jia <kan...@zju.edu.cn>
Reported-by: Yiming Tao <ta...@zju.edu.cn>
Signed-off-by: zhenwei pi <pizhen...@bytedance.com>
Message-Id: <20230803024314.29962-3-pizhen...@bytedance.com>
Reviewed-by: Michael S. Tsirkin <m...@redhat.com>
Signed-off-by: Michael S. Tsirkin <m...@redhat.com>

This smells like a stable-8.0 material. Please let me know if it is not.

Thanks,

/mjt

Reply via email to