]> git.baikalelectronics.ru Git - uboot.git/commit
test: dm: virtio: Test notify before del_vqs
authorAndrew Scull <ascull@google.com>
Mon, 16 May 2022 10:41:35 +0000 (10:41 +0000)
committerTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 13:24:04 +0000 (09:24 -0400)
commit10ec68ba5951a5ec6f27956220b0a91c32d3b86b
treeb7744f9d20086bc1673ef246339acb6d5398bd86
parent3a249696092dabdfe8da89649062ec91e174781c
test: dm: virtio: Test notify before del_vqs

The virtqueue is passed to virtio_notify() so move the virtqueue
deletion to the end of the test when it's no longer needed. This wasn't
causing any problems because the sandbox virtio transport driver doesn't
do anything for notifications, but it could cause problems if things
change and it was a bad example.

Signed-off-by: Andrew Scull <ascull@google.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/virtio.c