From: Alasdair G Kergon Subject: Re: [PATCH] Fix a bug in error path in alloc_dev Date: Sun, 16 Jul 2006 20:39:09 +0100 Message-ID: <20060716193909.GU26314@agk.surrey.redhat.com> References: <20060716193030.GA2486@mellanox.co.il> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20060716193030.GA2486@mellanox.co.il> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Ishai Rabinovitz Cc: dm-devel@redhat.com List-Id: dm-devel.ids On Sun, Jul 16, 2006 at 10:30:30PM +0300, Ishai Rabinovitz wrote: > While reading the code I found a bug in the error path in alloc_dev in dm.c > When blk_alloc_queue fails there is no call to free_minor. Well spotted! [I don't like numbered labels BTW - the patch shows why.] Alasdair -- agk@redhat.com