public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: ccaulfield@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW daemons/clvmd/clvmd-cman.c Date: Tue, 25 Mar 2008 10:42:00 -0000 [thread overview] Message-ID: <20080325104200.20515.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: ccaulfield@sourceware.org 2008-03-25 10:41:59 Modified files: . : WHATS_NEW daemons/clvmd : clvmd-cman.c Log message: When reallocating the node IDs array, make it bigger rather than smaller! Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.804&r2=1.805 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/daemons/clvmd/clvmd-cman.c.diff?cvsroot=lvm2&r1=1.20&r2=1.21 --- LVM2/WHATS_NEW 2008/03/17 09:37:47 1.804 +++ LVM2/WHATS_NEW 2008/03/25 10:41:59 1.805 @@ -1,5 +1,6 @@ Version 2.02.34 - =================================== + clvmd no longer crashes if it sees nodeids over 50. Fix potential deadlock in clvmd thread handling. Refactor text format initialisation into _init_text_import. Escape double quotes and backslashes in external metadata and config data. --- LVM2/daemons/clvmd/clvmd-cman.c 2007/05/02 12:22:40 1.20 +++ LVM2/daemons/clvmd/clvmd-cman.c 2008/03/25 10:41:59 1.21 @@ -241,7 +241,7 @@ if (nodeid >= max_updown_nodes) { int new_size = nodeid + 10; - int *new_updown = realloc(node_updown, new_size); + int *new_updown = realloc(node_updown, sizeof(int) * new_size); if (new_updown) { node_updown = new_updown; @@ -326,7 +326,10 @@ } if (node_updown == NULL) { - size_t buf_len = sizeof(int) * max(num_nodes, max_updown_nodes); + size_t buf_len; + if (num_nodes > max_updown_nodes) + max_updown_nodes = num_nodes; + buf_len = sizeof(int) * max_updown_nodes; node_updown = malloc(buf_len); if (node_updown) memset(node_updown, 0, buf_len);
next reply other threads:[~2008-03-25 10:42 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2008-03-25 10:42 ccaulfield [this message] -- strict thread matches above, loose matches on Subject: below -- 2008-05-09 7:20 ccaulfield 2008-04-01 15:01 ccaulfield 2007-05-02 8:23 pcaulfield 2007-04-23 14:55 pcaulfield 2006-10-06 10:06 pcaulfield 2006-08-24 12:45 pcaulfield 2006-03-21 10:31 pcaulfield 2005-01-26 9:30 pcaulfield 2004-09-30 14:18 pcaulfield
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=20080325104200.20515.qmail@sourceware.org \ --to=ccaulfield@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).