From: Christophe Varoqui Subject: Re: [PATCH] multipath: strdup multipath alias, so that it isn't deleted. Date: Thu, 01 Sep 2011 08:55:18 +0200 Message-ID: <1314860118.14056.78.camel@lapoo.opensvc.com> References: <20110725182700.GK15149@ether.msp.redhat.com> <20110901024542.GA11793@ether.msp.redhat.com> Reply-To: christophe.varoqui@opensvc.com, device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110901024542.GA11793@ether.msp.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Benjamin Marzinski Cc: device-mapper development , Christophe Varoqui List-Id: dm-devel.ids On mer., 2011-08-31 at 21:45 -0500, Benjamin Marzinski wrote: > When a multipath device is added to multipathd with ev_add_map(), > > the alias is not duplicated, and is freed immediately after > ev_add_map() > > returns, causing a memory error. This patch corrects that. > > Merged. Do you think the "mpp->alias = NULL" is still necessary in the following setup_multipath() error code path ? alias is set to NULL by free_multipath() these days ... > if (setup_multipath(vecs, mpp)) { > mpp->alias = NULL; <========