summaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-08-05 16:15:38 +0200
committerIlya Dryomov <idryomov@gmail.com>2016-08-08 21:41:44 +0200
commit6b6dddbe11b13bb00e0f9a1af2021e266811be85 (patch)
treeecfcb048ee9791618e4eb759327a8480c10bd6dc /drivers/block
parentceph: fix null pointer dereference in ceph_flush_snaps() (diff)
downloadlinux-6b6dddbe11b13bb00e0f9a1af2021e266811be85.tar.xz
linux-6b6dddbe11b13bb00e0f9a1af2021e266811be85.zip
rbd: destroy header_oloc in rbd_dev_release()
Purely cosmetic at this point, as rbd doesn't use RADOS namespaces and hence rbd_dev->header_oloc->pool_ns is always NULL. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/rbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
index 1a04af6d2421..07668a6f0607 100644
--- a/drivers/block/rbd.c
+++ b/drivers/block/rbd.c
@@ -3950,6 +3950,7 @@ static void rbd_dev_release(struct device *dev)
bool need_put = !!rbd_dev->opts;
ceph_oid_destroy(&rbd_dev->header_oid);
+ ceph_oloc_destroy(&rbd_dev->header_oloc);
rbd_put_client(rbd_dev->rbd_client);
rbd_spec_put(rbd_dev->spec);