diff options
author | Joe Thornber <ejt@redhat.com> | 2013-12-13 18:55:55 +0400 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2013-12-13 23:22:10 +0400 |
commit | ed9571f0cf1fe09d3506302610f3ccdfa1d22c4a (patch) | |
tree | ec013b939d466fbd06d3c62a5a0de5ca9e5a3ae1 /drivers/md/dm-thin-metadata.h | |
parent | 5b564d80f8bc21094c0cd2b19b679d983aabcc29 (diff) | |
download | linux-ed9571f0cf1fe09d3506302610f3ccdfa1d22c4a.tar.xz |
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 <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org # 3.9+
Diffstat (limited to 'drivers/md/dm-thin-metadata.h')
0 files changed, 0 insertions, 0 deletions