|
|
22c213 |
From e483eea891139ee38138381ba6715b3a2be050cc Mon Sep 17 00:00:00 2001
|
|
|
22c213 |
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
|
|
|
22c213 |
Date: Tue, 3 Mar 2020 18:43:12 +0000
|
|
|
22c213 |
Subject: [PATCH 16/18] tools/virtiofsd/fuse_lowlevel: Fix
|
|
|
22c213 |
fuse_out_header::error value
|
|
|
22c213 |
MIME-Version: 1.0
|
|
|
22c213 |
Content-Type: text/plain; charset=UTF-8
|
|
|
22c213 |
Content-Transfer-Encoding: 8bit
|
|
|
22c213 |
|
|
|
22c213 |
RH-Author: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
22c213 |
Message-id: <20200303184314.155564-6-dgilbert@redhat.com>
|
|
|
22c213 |
Patchwork-id: 94128
|
|
|
22c213 |
O-Subject: [RHEL-AV-8.2.0 qemu-kvm PATCH 5/7] tools/virtiofsd/fuse_lowlevel: Fix fuse_out_header::error value
|
|
|
22c213 |
Bugzilla: 1797064
|
|
|
22c213 |
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
|
|
|
22c213 |
RH-Acked-by: Sergio Lopez Pascual <slp@redhat.com>
|
|
|
22c213 |
RH-Acked-by: Ján Tomko <jtomko@redhat.com>
|
|
|
22c213 |
|
|
|
22c213 |
From: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
22c213 |
|
|
|
22c213 |
Fix warning reported by Clang static code analyzer:
|
|
|
22c213 |
|
|
|
22c213 |
CC tools/virtiofsd/fuse_lowlevel.o
|
|
|
22c213 |
tools/virtiofsd/fuse_lowlevel.c:195:9: warning: Value stored to 'error' is never read
|
|
|
22c213 |
error = -ERANGE;
|
|
|
22c213 |
^ ~~~~~~~
|
|
|
22c213 |
|
|
|
22c213 |
Fixes: 3db2876
|
|
|
22c213 |
Reported-by: Clang Static Analyzer
|
|
|
22c213 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
22c213 |
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
22c213 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
|
|
|
22c213 |
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
|
|
|
22c213 |
(cherry picked from commit 09c086b2a144324199f99a7d4de78c3276a486c1)
|
|
|
22c213 |
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
|
|
|
22c213 |
---
|
|
|
22c213 |
tools/virtiofsd/fuse_lowlevel.c | 2 +-
|
|
|
22c213 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
22c213 |
|
|
|
22c213 |
diff --git a/tools/virtiofsd/fuse_lowlevel.c b/tools/virtiofsd/fuse_lowlevel.c
|
|
|
22c213 |
index 704c036..2dd36ec 100644
|
|
|
22c213 |
--- a/tools/virtiofsd/fuse_lowlevel.c
|
|
|
22c213 |
+++ b/tools/virtiofsd/fuse_lowlevel.c
|
|
|
22c213 |
@@ -192,7 +192,7 @@ int fuse_send_reply_iov_nofree(fuse_req_t req, int error, struct iovec *iov,
|
|
|
22c213 |
|
|
|
22c213 |
if (error <= -1000 || error > 0) {
|
|
|
22c213 |
fuse_log(FUSE_LOG_ERR, "fuse: bad error value: %i\n", error);
|
|
|
22c213 |
- error = -ERANGE;
|
|
|
22c213 |
+ out.error = -ERANGE;
|
|
|
22c213 |
}
|
|
|
22c213 |
|
|
|
22c213 |
iov[0].iov_base = &out;
|
|
|
22c213 |
--
|
|
|
22c213 |
1.8.3.1
|
|
|
22c213 |
|