]> sourceware.org Git - lvm2.git/commitdiff
Do not call dm_task_destroy with NULL
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Nov 2010 18:29:06 +0000 (18:29 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Nov 2010 18:29:06 +0000 (18:29 +0000)
WHATS_NEW
libdm/libdm-deptree.c

index d2609073c222c4900d2d29badfb9182dedc2fc24..7412efca05a600ea788ae5b7ec5fbada09554e5f 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.78 - 
 ====================================
+  Fix dm_task_destroy(NULL) call in _node_clear_table() error path.
   Fix resource leak in _rm_blks().
   Suppress 'No PV label' message when removing several PVs without mdas.
   Fix default /etc/lvm permissions to be 0755. (2.02.66)
index 952c37be05b440684cc94ef0b0e9720cb3f97b07..c1b5bdcc3732aed28872edea2be5295f37083f1d 100644 (file)
@@ -580,7 +580,6 @@ static int _node_clear_table(struct dm_tree_node *dnode)
                    name, info->major, info->minor);
 
        if (!(dmt = dm_task_create(DM_DEVICE_CLEAR))) {
-               dm_task_destroy(dmt);
                log_error("Table clear dm_task creation failed for %s", name);
                return 0;
        }
This page took 0.048111 seconds and 5 git commands to generate.