aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r--drivers/md/dm-table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index 91976e8fae5f..be625475cf6d 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -238,6 +238,9 @@ void dm_table_destroy(struct dm_table *t)
238{ 238{
239 unsigned int i; 239 unsigned int i;
240 240
241 if (!t)
242 return;
243
241 while (atomic_read(&t->holders)) 244 while (atomic_read(&t->holders))
242 msleep(1); 245 msleep(1);
243 smp_mb(); 246 smp_mb();