Whamcloud - gitweb
ss_create_invocation: fix error handling when memory allocation fails
authorWu Guanghao <wuguanghao3@huawei.com>
Wed, 28 Jul 2021 01:56:46 +0000 (09:56 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 3 Aug 2021 02:01:08 +0000 (22:01 -0400)
commiteccdde1ff381591cae935ddd5444ac9445c94fc3
tree53358eebcb794d4863745332fdde6d40c859b1a1
parentfeccf49871de4b05f9d99aca2df578947be98188
ss_create_invocation: fix error handling when memory allocation fails

In ss_create_invocation(), it is necessary to check whether
returned by malloc is a null pointer.

Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ss/invocation.c