public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 lib/filters/filter-regex.c ./WHATS_NEW
@ 2012-02-13 11:16 zkabelac
0 siblings, 0 replies; only message in thread
From: zkabelac @ 2012-02-13 11:16 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac@sourceware.org 2012-02-13 11:16:42
Modified files:
lib/filters : filter-regex.c
. : WHATS_NEW
Log message:
Add check for allocation failure
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/filters/filter-regex.c.diff?cvsroot=lvm2&r1=1.32&r2=1.33
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.2289&r2=1.2290
--- LVM2/lib/filters/filter-regex.c 2011/08/30 14:55:17 1.32
+++ LVM2/lib/filters/filter-regex.c 2012/02/13 11:16:42 1.33
@@ -110,16 +110,17 @@
count++;
}
- /*
- * allocate space for them
- */
- if (!(regex = dm_pool_alloc(scratch, sizeof(*regex) * count)))
- goto_out;
+ /* Allocate space for them */
+ if (!(regex = dm_pool_alloc(scratch, sizeof(*regex) * count))) {
+ log_error("Failed to allocate regex.");
+ goto out;
+ }
- /*
- * create the accept/reject bitset
- */
- rf->accept = dm_bitset_create(rf->mem, count);
+ /* Create the accept/reject bitset */
+ if (!(rf->accept = dm_bitset_create(rf->mem, count))) {
+ log_error("Failed to create bitset.");
+ goto out;
+ }
/*
* fill the array back to front because we
--- LVM2/WHATS_NEW 2012/02/13 11:10:37 1.2289
+++ LVM2/WHATS_NEW 2012/02/13 11:16:42 1.2290
@@ -1,5 +1,6 @@
Version 2.02.92 -
====================================
+ Add check for allocation failure in _build_matcher().
Add check for rimage name allocation failure in _raid_add_images().
Add check for mda_copy failure in _text_pv_setup().
Add check for _mirrored_init_target failure.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-13 11:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-13 11:16 LVM2 lib/filters/filter-regex.c ./WHATS_NEW zkabelac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).