md-cluster: add missed lockres_free
authorGuoqing Jiang <gqjiang@suse.com>
Fri, 10 Jul 2015 09:01:20 +0000 (17:01 +0800)
committerNeilBrown <neilb@suse.com>
Mon, 31 Aug 2015 17:42:23 +0000 (19:42 +0200)
commit6e6d9f2cda47745a3abcb6609b1dee0e831161d8
treed67a23be0f9c90c3602c643b2cb8815b9a0ce1f5
parentb2b9bfff0aa721a04a3924ed451c417d2bd9ed15
md-cluster: add missed lockres_free

We also need to free the lock resource before goto out.

Reviewed-by: Goldwyn Rodrigues <rgoldwyn@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
drivers/md/md-cluster.c