Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <colin.king@canonical.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>

-3
-3
net/ceph/osd_client.c
··· 3483 3483 goto e_inval; 3484 3484 } 3485 3485 3486 - len = ceph_decode_32(p); 3487 - *p += len; /* skip osd_instructions */ 3488 - 3489 3486 /* skip the rest */ 3490 3487 *p = struct_end; 3491 3488 out: