]> Git Repo - qemu.git/commit - tests/vhost-user-test.c
tests: vhost-user-test: initialize 'fd' in chr_read
authorLi Qiang <[email protected]>
Sat, 15 Dec 2018 12:03:51 +0000 (04:03 -0800)
committerMichael S. Tsirkin <[email protected]>
Tue, 15 Jan 2019 00:31:04 +0000 (19:31 -0500)
commit82248cd45e6f82da892127c4749ae89335217e31
tree045fee2587d269f8d5be0d89d52b04e6ea8f3406
parenta5390d936714482ac5996e1635a6ffd9c3c133df
tests: vhost-user-test: initialize 'fd' in chr_read

Currently when processing VHOST_USER_SET_VRING_CALL
if 'qemu_chr_fe_get_msgfds' get no fd, the 'fd' will
be a stack uninitialized value.

Signed-off-by: Li Qiang <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
tests/vhost-user-test.c
This page took 0.02537 seconds and 4 git commands to generate.