Re: upstream kernel crashes

From: Linus Torvalds
Date: Wed Aug 17 2022 - 11:58:50 EST


On Tue, Aug 16, 2022 at 11:47 PM Xuan Zhuo <xuanzhuo@xxxxxxxxxxxxxxxxx> wrote:
>
> + BUG_ON(num != virtqueue_get_vring_size(vq));
> +

Please, no more BUG_ON.

Add a WARN_ON_ONCE() and return an error.

Linus