projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d8b8fb
)
libceph: directly skip to the end of redirect reply
author
Ilya Dryomov
<idryomov@gmail.com>
Fri, 30 Aug 2019 15:38:31 +0000
(17:38 +0200)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:41 +0000
(12:42 +0200)
Coverity complains about a double write to *p. Don't bother with
osd_instructions and directly skip to the end of redirect reply.
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
net/ceph/osd_client.c
patch
|
blob
|
history
diff --git
a/net/ceph/osd_client.c
b/net/ceph/osd_client.c
index
f9ec6a6
..
998e26b
100644
(file)
--- a/
net/ceph/osd_client.c
+++ b/
net/ceph/osd_client.c
@@
-3483,9
+3483,6
@@
static int ceph_redirect_decode(void **p, void *end,
goto e_inval;
}
- len = ceph_decode_32(p);
- *p += len; /* skip osd_instructions */
-
/* skip the rest */
*p = struct_end;
out: