nfs : fix coverity issues
Fixes 1388608 and 1274073. updates: bz#789278 Change-Id: Ibe2b948ae3b02feb938caffe81b2e484b4c7b221 Signed-off-by: Sunny Kumar <sunkumar@redhat.com>
This commit is contained in:
parent
62164ac0d2
commit
c006434c4f
@ -121,6 +121,10 @@ nfs_fop_local_init(xlator_t *nfsx)
|
||||
return NULL;
|
||||
|
||||
l = mem_get(nfs_fop_mempool(nfsx));
|
||||
if (!l) {
|
||||
gf_msg_nomem(GF_NFS, GF_LOG_ERROR, 4096);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
memset(l, 0, sizeof(*l));
|
||||
return l;
|
||||
|
@ -1403,8 +1403,8 @@ nlm4svc_lock_cbk(call_frame_t *frame, void *cookie, xlator_t *this,
|
||||
stat = nlm4_granted;
|
||||
if (cs->monitor && !nlm_monitor(caller_name)) {
|
||||
/* FIXME: handle nsm_monitor failure */
|
||||
gf_thread_create(&thr, NULL, nsm_monitor, (void *)caller_name,
|
||||
"nlmmon");
|
||||
(void)gf_thread_create(&thr, NULL, nsm_monitor, (void *)caller_name,
|
||||
"nlmmon");
|
||||
}
|
||||
}
|
||||
|
||||
@ -2699,7 +2699,7 @@ nlm4svc_init(xlator_t *nfsx)
|
||||
goto err;
|
||||
}
|
||||
|
||||
gf_thread_create(&thr, NULL, nsm_thread, (void *)NULL, "nfsnsm");
|
||||
(void)gf_thread_create(&thr, NULL, nsm_thread, (void *)NULL, "nfsnsm");
|
||||
|
||||
timeout.tv_sec = nlm_grace_period;
|
||||
timeout.tv_nsec = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user