OSDN Git Service

virtiofsd: Remove useless code about send_notify_iov
authorAlex Chen <alex.chen@huawei.com>
Mon, 14 Dec 2020 12:16:15 +0000 (12:16 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 18 Dec 2020 10:08:24 +0000 (10:08 +0000)
commit03350a1e8d88196eaa98d0cce4e24e730f09ad5b
tree7ff65d94b1cd3a21b84082c22fa544d195d282f0
parentd6211148f6509a4ece59cf8840b3198f96f7a3e9
virtiofsd: Remove useless code about send_notify_iov

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: Alex Chen <alex.chen@huawei.com>
Message-Id: <20201214121615.29967-1-alex.chen@huawei.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
tools/virtiofsd/fuse_lowlevel.c