Re: [Qemu-devel] [PATCH v2 1/3] tests: vhost-user-test: initialize 'fd' in chr_read

2019-01-02 Thread Li Qiang
Thomas Huth 于2019年1月2日周三 下午9:50写道: > On 2018-12-15 13:03, Li Qiang wrote: > > 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 > > --- > > tests/vhost-user-test.c | 2

Re: [Qemu-devel] [PATCH v2 1/3] tests: vhost-user-test: initialize 'fd' in chr_read

2019-01-02 Thread Michael S. Tsirkin
On Wed, Jan 02, 2019 at 02:50:50PM +0100, Thomas Huth wrote: > On 2018-12-15 13:03, Li Qiang wrote: > > 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 > > --- > >

Re: [Qemu-devel] [PATCH v2 1/3] tests: vhost-user-test: initialize 'fd' in chr_read

2019-01-02 Thread Thomas Huth
On 2018-12-15 13:03, Li Qiang wrote: > 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 > --- > tests/vhost-user-test.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

[Qemu-devel] [PATCH v2 1/3] tests: vhost-user-test: initialize 'fd' in chr_read

2018-12-15 Thread Li Qiang
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 --- tests/vhost-user-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/vhost-user-test.c