summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2015-10-09 14:03:38 +0100
committerLuis Henriques <luis.henriques@canonical.com>2015-10-30 13:59:29 +0000
commit495ec73d53ce93df7d1ed2955c8eda8434568c5e (patch)
tree67accaa77abaa44f160e5a3201c814feb9e613c6 /kernel
parent206b196ce3a6d75f238b8c0434e4432080783c05 (diff)
dm cache: fix NULL pointer when switching from cleaner policy
commit 2bffa1503c5c06192eb1459180fac4416575a966 upstream. The cleaner policy doesn't make use of the per cache block hint space in the metadata (unlike the other policies). When switching from the cleaner policy to mq or smq a NULL pointer crash (in dm_tm_new_block) was observed. The crash was caused by bugs in dm-cache-metadata.c when trying to skip creation of the hint btree. The minimal fix is to change hint size for the cleaner policy to 4 bytes (only hint size supported). Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions