numam-spdk/module/blobfs/bdev
Zhiqiang Liu d491e7ea33 blobfs: check return value of strdup in blobfs_fuse_start()
In blobfs_fuse_start(), bfuse->bdev_name and bfuse->mountpoint
are allocated by calling strdup(), which may return NULL.
Here, we will go to err if strdup() returns NULL.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Change-Id: I0599254b3436a310ddd26732312281f07a4972ec
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8303
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2021-06-16 08:53:21 +00:00
..
blobfs_bdev_rpc.c module: Use PRId64 for portability 2020-11-19 09:59:01 +00:00
blobfs_bdev.c blobfs_bdev: Use spdk_bdev_create_bs_dev_ext() instead of spdk_bdev_create_bs_dev_from_desc() 2020-10-20 08:52:29 +00:00
blobfs_fuse.c blobfs: check return value of strdup in blobfs_fuse_start() 2021-06-16 08:53:21 +00:00
blobfs_fuse.h module/blobfs: remove spdk prefix from static/internal functions. 2020-05-18 09:48:18 +00:00
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
spdk_blobfs_bdev.map module/blobfs_bdev: add a map file. 2020-05-18 09:48:18 +00:00