lkml.org 
[lkml]   [2005]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/
\
 
 \ /
  Last update: 2005-07-12 23:31    [W:1.068 / U:0.740 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site