[PATCH] dm: Fix panic on shrinking device size

2007-10-30 Thread Jun'ichi Nomura
Hi, This patch fixes a panic on shrinking DM device, due to reference outside of the DM table. The problem occurs only if there is outstanding I/O to the removed part of the device. The bug is in that __clone_and_map() assumes dm_table_find_target() always returns a valid pointer. It may fail

[PATCH] dm: Fix panic on shrinking device size

2007-10-30 Thread Jun'ichi Nomura
Hi, This patch fixes a panic on shrinking DM device, due to reference outside of the DM table. The problem occurs only if there is outstanding I/O to the removed part of the device. The bug is in that __clone_and_map() assumes dm_table_find_target() always returns a valid pointer. It may fail