diff options
author | Will Deacon <willdeacon@google.com> | 2023-03-29 22:24:56 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 11:53:15 -0400 |
commit | da4e8bb09d6ea33618335106ea6a1fc515128123 (patch) | |
tree | d4e4664fc161fb2f7056b1dc9899590b8a389e0c /lib/efi_loader/helloworld.c | |
parent | 7804306c800112390a35af9c777bda86465a7be5 (diff) |
virtio: pci: Tear down VQs in virtio_pci_reset()
The pages backing the virtqueues for virtio PCI devices are not freed
on reset, despite the virtqueue structure being freed as part of the
driver '->priv_auto' destruction at ->remove() time.
Call virtio_pci_del_vqs() from virtio_pci_reset() to free the virtqueue
pages before freeing the virtqueue structure itself.
Signed-off-by: Will Deacon <willdeacon@google.com>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/5ed54ccd83cbffd0d8719ce650604b4e44b5b0d8
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/efi_loader/helloworld.c')
0 files changed, 0 insertions, 0 deletions