rbd: fix error paths in rbd_dev_refresh()
authorIlya Dryomov <idryomov@redhat.com>
Thu, 8 Jan 2015 17:18:22 +0000 (20:18 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 19 Feb 2015 10:31:38 +0000 (13:31 +0300)
commit73e39e4dba828fe1affefe6290456623319707bd
tree436c5f303096c5c7ce9417b52259da129fe83674
parent982d6011bc30a26e8a3d546e0e7fc7db2c255d85
rbd: fix error paths in rbd_dev_refresh()

header_rwsem should be released on errors.  Also remove useless
rbd_dev->mapping.size != rbd_dev->header.image_size test.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
drivers/block/rbd.c