From fa10c8a3528b95dc575bfedd30bcd68cc2dff25b Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 3 May 2017 18:39:14 +0530 Subject: gfapi: Fix few severe coverity issues From https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-05-03-6484558c/html/ fixes coverity#189, 248, 250, 488, 546 Change-Id: I7c4aa5bf6c367344602748dfd736de27f341cca2 BUG: 789278 Signed-off-by: Soumya Koduri Reviewed-on: https://review.gluster.org/17161 Smoke: Gluster Build System Reviewed-by: Niels de Vos NetBSD-regression: NetBSD Build System Reviewed-by: Amar Tumballi CentOS-regression: Gluster Build System --- api/src/glfs-handleops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'api/src/glfs-handleops.c') diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c index de0a6deb87f..dbffa9e26bf 100644 --- a/api/src/glfs-handleops.c +++ b/api/src/glfs-handleops.c @@ -2089,6 +2089,7 @@ pub_glfs_h_poll_upcall (struct glfs *fs, struct glfs_upcall **up_arg) case GF_UPCALL_RECALL_LEASE: gf_log ("glfs_h_poll_upcall", GF_LOG_DEBUG, "UPCALL_RECALL_LEASE is not implemented yet"); + /* fallthrough till we support leases */ case GF_UPCALL_EVENT_NULL: /* no 'default:' label, to force handling all upcall events */ errno = ENOENT; -- cgit