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)
commit82c8610a44c6d4d38b90246f6893cb8e7b911e0c
treeb7744f9d20086bc1673ef246339acb6d5398bd86
parent1674b6c4d820a4139c406d673a3319f785503a5d
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