diff options
author | Haotian Li | 2020-11-11 02:10:38 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2020-11-12 17:25:38 +0100 |
commit | 7632b56c8f880a8f86cf049a3785069e1ffd2997 (patch) | |
tree | aa52af2f3606e4a6f310f660cc11e899eafd79ce /migration/migration.c | |
parent | virtiofsd: check whether lo_map_reserve returns NULL in, main func (diff) | |
download | qemu-7632b56c8f880a8f86cf049a3785069e1ffd2997.tar.gz qemu-7632b56c8f880a8f86cf049a3785069e1ffd2997.tar.xz qemu-7632b56c8f880a8f86cf049a3785069e1ffd2997.zip |
virtiofsd: check whether strdup lo.source return NULL in main func
In main func, strdup lo.source may fail. So check whether strdup
lo.source return NULL before using it.
Signed-off-by: Haotian Li <lihaotian9@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Message-Id: <f1e48ca8-d6de-d901-63c8-4f4024bda518@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.c')
0 files changed, 0 insertions, 0 deletions