On 2/28/25 2:47 PM, Gowrishankar Muthukrishnan wrote:
Until virtio avail ring is initialized (by VHOST_USER_SET_VRING_ADDR),
worker thread should not try to fetch crypto op, which would lead to
memory fault.

Fixes: 939066d96563 ("vhost/crypto: add public function implementation")
Cc: [email protected]

Signed-off-by: Gowrishankar Muthukrishnan <[email protected]>
Acked-by: Akhil Goyal <[email protected]>
---
  lib/vhost/vhost_crypto.c | 25 ++++++++++++++++++++++---
  1 file changed, 22 insertions(+), 3 deletions(-)


Reviewed-by: Maxime Coquelin <[email protected]>

Thanks,
Maxime


Reply via email to