From: Kiyoshi Ueda Date: Tue, 22 Nov 2005 05:32:32 +0000 (-0800) Subject: [PATCH] device-mapper dm-ioctl: missing put in table load error case X-Git-Tag: v2.6.15-rc4~73 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b6fcc80d03b41162ed88c3fb542aca9b654bc414;p=linux-2.6-omap-h63xx.git [PATCH] device-mapper dm-ioctl: missing put in table load error case An error path in table_load() forgets to release a table that won't now be referenced. Signed-off-by: Alasdair G Kergon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 54ec737195e..a90b053368e 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -974,6 +974,7 @@ static int table_load(struct dm_ioctl *param, size_t param_size) if (!hc) { DMWARN("device doesn't appear to be in the dev hash table."); up_write(&_hash_lock); + dm_table_put(t); return -ENXIO; }