]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/md/dm-ioctl.c
[PATCH] device-mapper dm-ioctl: missing put in table load error case
[linux-2.6-omap-h63xx.git] / drivers / md / dm-ioctl.c
index 54ec737195e00f9043a8db9dbc04aff0df09e40f..a90b053368ee3948d49394fe9b4eae2a0c1fcdf2 100644 (file)
@@ -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;
        }