OSDN Git Service

virtiofsd: check whether strdup lo.source return NULL in main func
authorHaotian Li <lihaotian9@huawei.com>
Wed, 11 Nov 2020 01:10:38 +0000 (09:10 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Nov 2020 16:25:38 +0000 (16:25 +0000)
commit7632b56c8f880a8f86cf049a3785069e1ffd2997
treeaa52af2f3606e4a6f310f660cc11e899eafd79ce
parentdb2e026a39d9871217289e5ed5cb97a2b7f476e5
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>
tools/virtiofsd/passthrough_ll.c