Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm
[sfrench/cifs-2.6.git] / drivers / md / dm-table.c
index 91976e8fae5f0326027a534c7b20f132f2d76433..be625475cf6df41faa48c9a3b91e841655afb3b2 100644 (file)
@@ -238,6 +238,9 @@ void dm_table_destroy(struct dm_table *t)
 {
        unsigned int i;
 
+       if (!t)
+               return;
+
        while (atomic_read(&t->holders))
                msleep(1);
        smp_mb();