summaryrefslogtreecommitdiff
path: root/libmultipath/checkers/emc_clariion.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2022-01-14 13:50:19 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2022-01-14 13:50:19 +0900
commit9f1483fb0bea7defd7bdcfedb8a5329171f6d1d9 (patch)
tree05458ff3f25dc8ae000f9501fdb3fd4cb34ab636 /libmultipath/checkers/emc_clariion.c
parent11d7ecbf0b8d9e0b8d9aa593265353cfc150cb88 (diff)
downloadmultipath-tools-9f1483fb0bea7defd7bdcfedb8a5329171f6d1d9.tar.gz
multipath-tools-9f1483fb0bea7defd7bdcfedb8a5329171f6d1d9.tar.bz2
multipath-tools-9f1483fb0bea7defd7bdcfedb8a5329171f6d1d9.zip
Imported Upstream version 0.8.3upstream/0.8.3
Diffstat (limited to 'libmultipath/checkers/emc_clariion.c')
-rw-r--r--libmultipath/checkers/emc_clariion.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmultipath/checkers/emc_clariion.c b/libmultipath/checkers/emc_clariion.c
index 6fc8911..5cd63ac 100644
--- a/libmultipath/checkers/emc_clariion.c
+++ b/libmultipath/checkers/emc_clariion.c
@@ -107,11 +107,18 @@ int libcheck_init (struct checker * c)
return 1;
((struct emc_clariion_checker_path_context *)c->context)->wwn_set = 0;
+ return 0;
+}
+
+int libcheck_mp_init (struct checker * c)
+{
/*
* Allocate and initialize the multi-path global context.
*/
if (c->mpcontext && *c->mpcontext == NULL) {
void * mpctxt = malloc(sizeof(int));
+ if (!mpctxt)
+ return 1;
*c->mpcontext = mpctxt;
CLR_INACTIVE_SNAP(c);
}