diff options
author | Haotian Li <lihaotian9@huawei.com> | 2020-11-11 09:05:56 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-11-12 16:25:23 +0000 |
commit | 7fa87944f82d75d21b7166570ac87d7874c151d5 (patch) | |
tree | d033f83d918a9a0bffea2a1a11e3a43b9853c63a /util/compatfd.c | |
parent | f26688a911ed4bc122f597333c9d5b45175e683c (diff) | |
download | qemu-7fa87944f82d75d21b7166570ac87d7874c151d5.zip qemu-7fa87944f82d75d21b7166570ac87d7874c151d5.tar.gz qemu-7fa87944f82d75d21b7166570ac87d7874c151d5.tar.bz2 |
tools/virtiofsd/buffer.c: check whether buf is NULL in fuse_bufvec_advance func
In fuse_bufvec_advance func, calling fuse_bufvec_current func
may return NULL, so we should check whether buf is NULL before
using it.
Signed-off-by: Haotian Li <lihaotian9@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Message-Id: <29fc87c2-b87c-4c34-40d4-75381f228849@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'util/compatfd.c')
0 files changed, 0 insertions, 0 deletions