lkml.org 
[lkml]   [2003]   [Sep]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] DM 2/6: Drop extra table ref-count
Date
When multiple load ioctls are issued the reference count on older
'new_tables' wasn't being dropped. [Christophe Saout]

--- diff/drivers/md/dm-ioctl-v4.c 2003-09-17 12:28:06.000000000 +0100
+++ source/drivers/md/dm-ioctl-v4.c 2003-09-17 13:08:53.000000000 +0100
@@ -817,6 +817,8 @@
return -ENXIO;
}

+ if (hc->new_map)
+ dm_table_put(hc->new_map);
hc->new_map = t;
param->flags |= DM_INACTIVE_PRESENT_FLAG;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.060 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site