diff options
| author | Will Deacon <[email protected]> | 2023-03-29 22:24:56 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-04-25 11:53:15 -0400 |
| commit | da4e8bb09d6ea33618335106ea6a1fc515128123 (patch) | |
| tree | d4e4664fc161fb2f7056b1dc9899590b8a389e0c /doc/develop | |
| 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 <[email protected]>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <[email protected]>
Cc: Bin Meng <[email protected]>
Link: https://android.googlesource.com/platform/external/u-boot/+/5ed54ccd83cbffd0d8719ce650604b4e44b5b0d8
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'doc/develop')
0 files changed, 0 insertions, 0 deletions
