|
|
17b94a |
From 31cd7627ff329a39691239322df3bc88e962ad02 Mon Sep 17 00:00:00 2001
|
|
|
17b94a |
From: Xavi Hernandez <xhernandez@redhat.com>
|
|
|
17b94a |
Date: Mon, 1 Mar 2021 05:19:39 +0100
|
|
|
17b94a |
Subject: [PATCH 538/538] afr: fix coverity issue introduced by 90cefde
|
|
|
17b94a |
|
|
|
17b94a |
Fixes coverity issues 1447029 and 1447028.
|
|
|
17b94a |
|
|
|
17b94a |
Backport of:
|
|
|
17b94a |
> Upstream-patch-link: https://github.com/gluster/glusterfs/pull/2201
|
|
|
17b94a |
> Updates: #2161
|
|
|
17b94a |
> Change-Id: I6a564231d6aeb76de20675b7ced5d45eed8c377f
|
|
|
17b94a |
> Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
|
|
|
17b94a |
|
|
|
17b94a |
BUG: 1911292
|
|
|
17b94a |
Change-Id: I6a564231d6aeb76de20675b7ced5d45eed8c377f
|
|
|
17b94a |
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
|
|
|
17b94a |
Reviewed-on: https://code.engineering.redhat.com/gerrit/229200
|
|
|
17b94a |
Tested-by: RHGS Build Bot <nigelb@redhat.com>
|
|
|
17b94a |
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
|
|
|
17b94a |
---
|
|
|
17b94a |
xlators/cluster/afr/src/afr-inode-read.c | 4 ++--
|
|
|
17b94a |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
17b94a |
|
|
|
17b94a |
diff --git a/xlators/cluster/afr/src/afr-inode-read.c b/xlators/cluster/afr/src/afr-inode-read.c
|
|
|
17b94a |
index 98e195a..d874172 100644
|
|
|
17b94a |
--- a/xlators/cluster/afr/src/afr-inode-read.c
|
|
|
17b94a |
+++ b/xlators/cluster/afr/src/afr-inode-read.c
|
|
|
17b94a |
@@ -918,13 +918,13 @@ afr_update_local_dicts(call_frame_t *frame, dict_t *dict, dict_t *xdata)
|
|
|
17b94a |
}
|
|
|
17b94a |
|
|
|
17b94a |
if (dict != NULL) {
|
|
|
17b94a |
- if (dict_copy(dict, local->dict) < 0) {
|
|
|
17b94a |
+ if (dict_copy(dict, local->dict) == NULL) {
|
|
|
17b94a |
goto done;
|
|
|
17b94a |
}
|
|
|
17b94a |
}
|
|
|
17b94a |
|
|
|
17b94a |
if (xdata != NULL) {
|
|
|
17b94a |
- if (dict_copy(xdata, local->xdata_rsp) < 0) {
|
|
|
17b94a |
+ if (dict_copy(xdata, local->xdata_rsp) == NULL) {
|
|
|
17b94a |
goto done;
|
|
|
17b94a |
}
|
|
|
17b94a |
}
|
|
|
17b94a |
--
|
|
|
17b94a |
1.8.3.1
|
|
|
17b94a |
|