diff options
author | Raghavendra Bhat <raghavendrabhat@gluster.com> | 2011-04-11 05:00:31 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-11 05:44:06 -0700 |
commit | 882085db173a031a4cc24b5dec7e369f1b512747 (patch) | |
tree | 0a0976861cd1bbf8e5cf2201e9c9299718920554 | |
parent | 204db674a9c6a724f5fe887c02cd98386043f4fe (diff) |
marker: check the return value being less than zero instead of -1
Signed-off-by: Raghavendra Bhat <raghavendrabhat@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
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
-rw-r--r-- | xlators/features/marker/src/marker.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |