commit | 5655c4d940ba8dd32250ab1e4ba3db785943a28e | [log] [tgz] |
---|---|---|
author | Alex Elder <elder@inktank.com> | Thu Apr 25 23:15:08 2013 -0500 |
committer | Sage Weil <sage@inktank.com> | Wed May 01 21:19:34 2013 -0700 |
tree | eca7458b04f89420efe1fdfe576488f9cd6814b9 | |
parent | c0fba36880288afbeca872298c970fb4abb76464 [diff] |
rbd: fix image id leak in initial probe If a format 2 image id is found for an image being mapped, but the subsequent probe of the image fails, rbd_dev_probe() quits without freeing the image id. Fix that. Also drop a redundant hunk of code in rbd_dev_image_id(). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>