Re: [Virtio-fs] [PATCH 3/3] virtiofsd: check whether strdup lo.source return NULL in main func

2020-11-11 Thread Dr. David Alan Gilbert
* Haotian Li (lihaoti...@huawei.com) wrote: > In main func, strdup lo.source may fail. So check whether strdup > lo.source return NULL before using it. > > Signed-off-by: Haotian Li > Signed-off-by: Zhiqiang Liu > --- > tools/virtiofsd/passthrough_ll.c | 4 > 1 file changed, 4 insertions(+

[PATCH 3/3] virtiofsd: check whether strdup lo.source return NULL in main func

2020-11-10 Thread Haotian Li
In main func, strdup lo.source may fail. So check whether strdup lo.source return NULL before using it. Signed-off-by: Haotian Li Signed-off-by: Zhiqiang Liu --- tools/virtiofsd/passthrough_ll.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/virtiofsd/passthrough_ll.c b/tools/vir