[PATCH] device-mapper: Fix target suspension oops.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux