From: Joe Thornber Date: Fri, 13 Dec 2013 14:55:55 +0000 (+0000) Subject: dm array: fix a reference counting bug in shadow_ablock X-Git-Tag: v3.13-rc4~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9571f0cf1fe09d3506302610f3ccdfa1d22c4a;p=pandora-kernel.git dm array: fix a reference counting bug in shadow_ablock An old array block could have its reference count decremented below zero when it is being replaced in the btree by a new array block. The fix is to increment the old ablock's reference count just before inserting a new ablock into the btree. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Cc: stable@vger.kernel.org # 3.9+ --- Reading git-diff-tree failed