diff options
author | 2025-07-29 15:39:16 +0800 | |
---|---|---|
committer | 2025-08-05 05:57:40 -0400 | |
commit | 6a20f9fca30c4047488a616b5225acb82367ef6b (patch) | |
tree | 9a6283a37120d6f81c2c07ac5db06ae1198aa0a6 /tools/perf/scripts/python | |
parent | Merge tag 'i2c-for-6.17-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux (diff) | |
download | wireguard-linux-6a20f9fca30c4047488a616b5225acb82367ef6b.tar.xz wireguard-linux-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 <jhkim@linux.ibm.com>
Reported-by: Breno Leitao <leitao@debian.org>
Fixes: 45347e79b544 ("vhost: basic in order support")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20250729073916.80647-1-jasowang@redhat.com>
Reviewed-by: Dawid Osuchowski <dawid.osuchowski@linux.intel.com>
Tested-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Tested-by: Jaehoon Kim <jhkim@linux.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions