From: Vegard Nossum Date: Thu, 5 Sep 2013 11:00:14 +0000 (+0200) Subject: xen/blkback: fix reference counting X-Git-Tag: v3.13-rc1~100^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5ec76d76da9279d12027c1828544c5ccbe7932;p=pandora-kernel.git xen/blkback: fix reference counting If the permission check fails, we drop a reference to the blkif without having taken it in the first place. The bug was introduced in commit 604c499cbbcc3d5fe5fb8d53306aa0fae1990109 (xen/blkback: Check device permissions before allowing OP_DISCARD). Cc: stable@vger.kernel.org Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Signed-off-by: Vegard Nossum Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: Jens Axboe --- Reading git-diff-tree failed