From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28134 invoked by alias); 14 May 2007 11:27:38 -0000 Received: (qmail 28061 invoked by uid 9664); 14 May 2007 11:27:35 -0000 Date: Mon, 14 May 2007 11:27:00 -0000 Message-ID: <20070514112735.28059.qmail@sourceware.org> From: mbroz@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2 ./WHATS_NEW lib/activate/dev_manager.c Mailing-List: contact lvm2-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: lvm2-cvs-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00002.txt.bz2 CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: mbroz@sourceware.org 2007-05-14 11:27:34 Modified files: . : WHATS_NEW lib/activate : dev_manager.c Log message: Fix a segfault if a device has no target (no table) Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.615&r2=1.616 http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/activate/dev_manager.c.diff?cvsroot=lvm2&r1=1.122&r2=1.123 --- LVM2/WHATS_NEW 2007/05/02 12:22:40 1.615 +++ LVM2/WHATS_NEW 2007/05/14 11:27:33 1.616 @@ -1,5 +1,6 @@ Version 2.02.26 - ================================= + Fix a segfault if a device has no target (no table) Add some more debuglogs to clvmd startup. Misc clvmd cleanups --- LVM2/lib/activate/dev_manager.c 2007/04/26 16:44:58 1.122 +++ LVM2/lib/activate/dev_manager.c 2007/05/14 11:27:34 1.123 @@ -187,7 +187,7 @@ next = dm_get_next_target(dmt, next, &start, &length, &target_type, ¶ms); /* Skip if target type doesn't match */ - if (!strcmp(target_type, "mirror")) + if (target_type && !strcmp(target_type, "mirror")) goto out; } while (next);