FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 10-18-2010, 02:39 PM
Peter Jones
 
Default Fix missing dm_put()

The change to make UUID setable after map creation was missing one
dm_put() call; this patch adds it.
---
drivers/md/dm-ioctl.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 22c2e22..e2d106b 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -351,6 +351,7 @@ static struct mapped_device *dm_hash_rename(struct dm_ioctl *param,
DMWARN("Unable to change uuid of device, %s because "
"uuid is already set to %s",
param->name, hc->uuid);
+ dm_put(hd->md);
up_write(&_hash_lock);
kfree(new_data);
return ERR_PTR(-EINVAL);
--
1.7.2.2

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 09:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org