Spdk/module
Tomasz Kulasek 8b74c02390 bdev/nvme: fix crash when invoking apply_firmware RPC
When structure for output of json decoders in not initialized
spdk_json_decode_string may fail trying to free uninitialized
string.

This patch changes mallocs used to allocate context and structure
for output of decoder with calloc.

Fixes #1151

Change-Id: I180b2ec52350b4ca90e7c318b4f2d13af554ec49
Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/483107
Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
2020-01-28 15:41:26 +00:00
..
bdev bdev/nvme: fix crash when invoking apply_firmware RPC 2020-01-28 15:41:26 +00:00
blob blob_bdev: add spdk_bdev_create_bs_dev_from_desc 2019-09-18 02:59:59 +00:00
blobfs rpc/blobfs: add cache size setting rpc 2019-11-07 00:33:25 +00:00
copy ioat copy engine: free the registered io device. 2019-12-30 03:09:01 +00:00
env_dpdk env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00
event nvmf: change default connection scheduler 2020-01-22 13:53:45 +00:00
sock sock/posix: Zero copy send 2020-01-27 17:42:24 +00:00
Makefile env_dpdk/rpc: add rpc to get memory stats. 2019-12-13 11:05:57 +00:00