]> sourceware.org Git - lvm2.git/commitdiff
Add missing log_error for alloc failure
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:06:09 +0000 (09:06 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Oct 2011 09:06:09 +0000 (09:06 +0000)
lib/config/config.c

index 2ed7bc7353d67c96f25a0184f269c639ea413eb3..cb143367dc7e84396ffbda222a088c58bfbfd880 100644 (file)
@@ -99,8 +99,10 @@ int read_config_fd(struct dm_config_tree *cft, struct device *dev,
                }
                fb = fb + mmap_offset;
        } else {
-               if (!(buf = dm_malloc(size + size2)))
-                       return_0;
+               if (!(buf = dm_malloc(size + size2))) {
+                       log_error("Failed to allocate circular buffer.");
+                       return 0;
+               }
                if (!dev_read_circular(dev, (uint64_t) offset, size,
                                       (uint64_t) offset2, size2, buf)) {
                        goto out;
This page took 0.034591 seconds and 5 git commands to generate.