rbd: rework rbd_img_obj_exists_submit() error paths
authorIlya Dryomov <idryomov@gmail.com>
Thu, 15 Sep 2016 15:53:32 +0000 (17:53 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 3 Oct 2016 14:13:48 +0000 (16:13 +0200)
commit710214e391476f331abed1b774b5f025d054ab7f
tree3ca0c6e07acc2a7a07cdf86bb4b8325a5a4266d4
parentfa355112c2763d513f1356119684dc8a6150d08a
rbd: rework rbd_img_obj_exists_submit() error paths

- don't put obj_request before rbd_obj_request_get() if
  rbd_obj_request_create() fails
- don't leak pages if rbd_obj_request_create() fails
- don't leak stat_request if rbd_osd_req_create() fails

Reported-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Reviewed-by: David Disseldorp <ddiss@suse.de>
drivers/block/rbd.c