public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 libdm/libdm-config.c test/t-000-basic.sh Date: Fri, 28 Oct 2011 20:07:00 -0000 [thread overview] Message-ID: <20111028200738.23981.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-10-28 20:07:38 Modified files: libdm : libdm-config.c test : t-000-basic.sh Log message: Fix core on buggy config file Since fixed within unreleased version so no WHATS_NEW Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-config.c.diff?cvsroot=lvm2&r1=1.14&r2=1.15 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/t-000-basic.sh.diff?cvsroot=lvm2&r1=1.12&r2=1.13 --- LVM2/libdm/libdm-config.c 2011/10/28 20:06:50 1.14 +++ LVM2/libdm/libdm-config.c 2011/10/28 20:07:38 1.15 @@ -170,8 +170,12 @@ */ struct dm_config_tree *dm_config_remove_cascaded_tree(struct dm_config_tree *cft) { - struct dm_config_tree *second_cft = cft->cascade; + struct dm_config_tree *second_cft; + if (!cft) + return NULL; + + second_cft = cft->cascade; cft->cascade = NULL; return second_cft; --- LVM2/test/t-000-basic.sh 2011/09/24 20:54:35 1.12 +++ LVM2/test/t-000-basic.sh 2011/10/28 20:07:38 1.13 @@ -23,3 +23,6 @@ # ensure we can create devices (uses dmsetup, etc) aux prepare_devs 5 +# ensure we do not crash on a bug in config file +aux lvmconf 'log/prefix = 1""' +not lvs
reply other threads:[~2011-10-28 20:07 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20111028200738.23981.qmail@sourceware.org \ --to=zkabelac@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).