diff options
| author | Jason Wang <[email protected]> | 2025-07-29 07:39:16 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2025-08-05 09:57:40 +0000 |
| commit | 6a20f9fca30c4047488a616b5225acb82367ef6b (patch) | |
| tree | 9a6283a37120d6f81c2c07ac5db06ae1198aa0a6 /scripts/gdb/vmlinux-gdb.py | |
| parent | Merge tag 'i2c-for-6.17-rc1-part2' of git://git.kernel.org/pub/scm/linux/kern... (diff) | |
| download | kernel-6a20f9fca30c4047488a616b5225acb82367ef6b.tar.gz kernel-6a20f9fca30c4047488a616b5225acb82367ef6b.zip | |
vhost: initialize vq->nheads properly
Commit 7918bb2d19c9 ("vhost: basic in order support") introduces
vq->nheads to store the number of batched used buffers per used elem
but it forgets to initialize the vq->nheads to NULL in
vhost_dev_init() this will cause kfree() that would try to free it
without be allocated if SET_OWNER is not called.
Reported-by: JAEHOON KIM <[email protected]>
Reported-by: Breno Leitao <[email protected]>
Fixes: 45347e79b544 ("vhost: basic in order support")
Signed-off-by: Jason Wang <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Dawid Osuchowski <[email protected]>
Tested-by: Breno Leitao <[email protected]>
Reviewed-by: Stefano Garzarella <[email protected]>
Tested-by: Jaehoon Kim <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'scripts/gdb/vmlinux-gdb.py')
0 files changed, 0 insertions, 0 deletions
