--- zzzz-none-000/linux-2.6.19.2/drivers/md/dm-ioctl.c 2007-01-10 19:10:37.000000000 +0000 +++ davinci-8020-5504/linux-2.6.19.2/drivers/md/dm-ioctl.c 2007-01-11 07:38:19.000000000 +0000 @@ -606,14 +606,9 @@ return __get_name_cell(param->name); md = dm_get_md(huge_decode_dev(param->dev)); - if (!md) - goto out; + if (md) + mdptr = dm_get_mdptr(md); - mdptr = dm_get_mdptr(md); - if (!mdptr) - dm_put(md); - -out: return mdptr; }