From 882085db173a031a4cc24b5dec7e369f1b512747 Mon Sep 17 00:00:00 2001 From: Raghavendra Bhat Date: Mon, 11 Apr 2011 05:00:31 +0000 Subject: marker: check the return value being less than zero instead of -1 Signed-off-by: Raghavendra Bhat Signed-off-by: Anand Avati BUG: 2711 ([glusterfs-3.2.0qa10]: glusterfs server crashed in marker_setxattr operations) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2711 --- xlators/features/marker/src/marker.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators') diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index e7a704874a8..66ef66f62cc 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -133,8 +133,10 @@ marker_trav_parent (marker_local_t *local) ret = marker_inode_loc_fill (local->loc.parent, &loc); - if (ret == -1) + if (ret < 0) { + ret = -1; goto out; + } loc_wipe (&local->loc); -- cgit