From: Ilya Dryomov Date: Mon, 31 Aug 2015 12:21:39 +0000 (+0300) Subject: rbd: fix double free on rbd_dev->header_name X-Git-Tag: omap-for-v4.3/fixes-rc1~31^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ebe138ac642a195c7f2efdb918f464734421fd6;p=pandora-kernel.git rbd: fix double free on rbd_dev->header_name If rbd_dev_image_probe() in rbd_dev_probe_parent() fails, header_name is freed twice: once in rbd_dev_probe_parent() and then in its caller rbd_dev_image_probe() (rbd_dev_image_probe() is called recursively to handle parent images). rbd_dev_probe_parent() is responsible for probing the parent, so it shouldn't muck with clone's fields. Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder --- Reading git-diff-tree failed