]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Commit a63a5cf (dm: improve block integrity support) introduced a
authorMike Snitzer <snitzer@redhat.com>
Tue, 9 Aug 2011 00:49:57 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Aug 2011 00:49:57 +0000 (10:49 +1000)
commit0e9d73198ef7d0e3f34c4234ec760950942baf06
treef6aec38670e608b72639365f1864296b033dad7f
parent60ea998be759d58fdc61609ca21c4a05451fc4f7
Commit a63a5cf (dm: improve block integrity support) introduced a
two-phase initialization of a DM device's integrity profile.  This
patch avoids dereferencing a NULL 'template_disk' pointer in
blk_integrity_register() if there is an integrity profile mismatch in
dm_table_set_integrity().

This can occur if the integrity profiles for stacked devices in a DM
table are changed between the call to dm_table_prealloc_integrity() and
dm_table_set_integrity().

Reported-by: Zdenek Kabelac <zkabelac@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: stable@kernel.org # 2.6.39
drivers/md/dm-table.c