Re: [PATCH] virtiofsd: Remove useless code about send_notify_iov

2020-12-17 Thread Dr. David Alan Gilbert
* Stefan Hajnoczi (stefa...@redhat.com) wrote: > On Mon, Dec 14, 2020 at 12:16:15PM +, Alex Chen wrote: > > The 'ch' will be NULL in the following stack: > > send_notify_iov()->fuse_send_msg()->virtio_send_msg(), and > > this may lead to NULL pointer dereferenced in virtio_send_msg(). > > But

Re: [PATCH] virtiofsd: Remove useless code about send_notify_iov

2020-12-14 Thread Stefan Hajnoczi
On Mon, Dec 14, 2020 at 12:16:15PM +, Alex Chen wrote: > The 'ch' will be NULL in the following stack: > send_notify_iov()->fuse_send_msg()->virtio_send_msg(), and > this may lead to NULL pointer dereferenced in virtio_send_msg(). > But send_notify_iov() was never called, so remove the useless

[PATCH] virtiofsd: Remove useless code about send_notify_iov

2020-12-14 Thread Alex Chen
The 'ch' will be NULL in the following stack: send_notify_iov()->fuse_send_msg()->virtio_send_msg(), and this may lead to NULL pointer dereferenced in virtio_send_msg(). But send_notify_iov() was never called, so remove the useless code about send_notify_iov() to fix this problem. Signed-off-by: