Message ID | 20100722163918.159875000@de.ibm.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show
Received: from mx02.colomx.prod.int.phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6MGhYRl003735 for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 22 Jul 2010 16:46:56 GMT Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx02.colomx.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdZ7v032262; Thu, 22 Jul 2010 12:39:36 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdZRt015027 for <dm-devel@listman.util.phx.redhat.com>; Thu, 22 Jul 2010 12:39:35 -0400 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.7]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdTAh004329 for <dm-devel@redhat.com>; Thu, 22 Jul 2010 12:39:30 -0400 Received: from mtagate2.de.ibm.com (mtagate2.de.ibm.com [195.212.17.162]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o6MGdJ71031954 for <dm-devel@redhat.com>; Thu, 22 Jul 2010 12:39:20 -0400 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate2.de.ibm.com (8.13.1/8.13.1) with ESMTP id o6MGdJjR030613 for <dm-devel@redhat.com>; Thu, 22 Jul 2010 16:39:19 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6MGdIFl1761374 for <dm-devel@redhat.com>; Thu, 22 Jul 2010 18:39:18 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o6MGdIPJ002359 for <dm-devel@redhat.com>; Thu, 22 Jul 2010 18:39:18 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id o6MGdIlO002351; Thu, 22 Jul 2010 18:39:18 +0200 Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 3476) id 45F01122422E; Thu, 22 Jul 2010 18:39:18 +0200 (CEST) Message-Id: <20100722163918.159875000@de.ibm.com> User-Agent: quilt/0.47-1 Date: Thu, 22 Jul 2010 18:36:47 +0200 From: Christof Schmitt <christof.schmitt@de.ibm.com> To: Christophe Varoqui <christophe.varoqui@opensvc.com> References: <20100722163646.585967000@de.ibm.com> Content-Disposition: inline; filename=fix-vector-realloc.diff X-RedHat-Spam-Score: -2.311 (RCVD_IN_DNSWL_MED,SPF_PASS,T_RP_MATCHES_RCVD) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-Scanned-By: MIMEDefang 2.67 on 10.5.110.7 X-loop: dm-devel@redhat.com Cc: Christof Schmitt <christof.schmitt@de.ibm.com>, dm-devel@redhat.com Subject: [dm-devel] [patch 1/2] multipath-tools: Assign correct pointer from REALLOC X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk Reply-To: device-mapper development <dm-devel@redhat.com> List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 22 Jul 2010 16:46:56 +0000 (UTC) |
--- a/libmultipath/vector.c +++ b/libmultipath/vector.c @@ -96,7 +96,7 @@ vector_del_slot(vector v, int slot) v->slot = NULL; } else - v = REALLOC(v->slot, sizeof (void *) * v->allocated); + v->slot = REALLOC(v->slot, sizeof (void *) * v->allocated); } void