On 2026-10-15T11:13:15, Bin Meng <[email protected]> wrote:
> virtio: blk: Validate configuration before creating the virtqueue
>
> The block driver allocates its virtqueue before checking the advertised
> block size. An invalid size makes probe return -EIO without releasing
> the queue, causing a memory leak.
>
> Change to read and validate the configuration before allocating the
> virtqueue instead.
>
> Signed-off-by: Bin Meng <[email protected]>
>
> drivers/virtio/virtio_blk.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to