summaryrefslogtreecommitdiff
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-05-16 11:18:57 (GMT)
committerIlya Dryomov <idryomov@gmail.com>2016-05-25 22:36:20 (GMT)
commit663ae2cc04773608e1e741f693e41200fd4faf14 (patch)
treea466793ccab81b82ae6bc36440db64bb0e6c512a /fs/ceph/addr.c
parent2dcd0af568b0cf583645c8a317dd12e344b1c72a (diff)
downloadlinux-663ae2cc04773608e1e741f693e41200fd4faf14.tar.xz
rbd: get/put img_request in rbd_img_request_submit()
By the time we get to checking for_each_obj_request_safe(img_request) terminating condition, all obj_requests may be complete and img_request ref, that rbd_img_request_submit() takes away from its caller, may be put. Moving the next_obj_request cursor is then a use-after-free on img_request. It's totally benign, as the value that's read is never used, but I think it's still worth fixing. Cc: Alex Elder <elder@linaro.org> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/addr.c')
0 files changed, 0 insertions, 0 deletions