Messages in this thread Patch in this message | | | Date | Tue, 12 Jul 2005 22:24:49 +0100 | From | Alasdair G Kergon <> | Subject | [PATCH] device-mapper: Fix target suspension oops. |
| |
This section got lost while refactoring the 'Fix deadlocks in core' set of patches I sent yesterday. Without it, you'll have problems activating any device-mapper devices.
The NULL detection is moved inside the functions instead of every caller having to do it.
--- drivers/md/dm-table.c 2005-07-12 22:10:20.000000000 +0100 +++ /data/kernels/pm-2612udm1/source/drivers/md/dm-table.c 2005-07-06 18:52:18.000000000 +0100 @@ -869,11 +869,17 @@ void dm_table_presuspend_targets(struct dm_table *t) { + if (!t) + return; + return suspend_targets(t, 0); } void dm_table_postsuspend_targets(struct dm_table *t) { + if (!t) + return; + return suspend_targets(t, 1); } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |