mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
libceph: directly skip to the end of redirect reply
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 <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
This commit is contained in:
1 parent
4d8b8fb494
commit
bb0e681dda
1 file changed
-3
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user