From: Zdenek Kabelac Date: Fri, 16 Oct 2009 22:18:15 +0000 (+0100) Subject: dm: add missing del_gendisk to alloc_dev error path X-Git-Tag: v2.6.32-rc6~118^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03022c54b9725026c0370a810168975c387ad04c;p=pandora-kernel.git dm: add missing del_gendisk to alloc_dev error path Add missing del_gendisk() to error path when creation of workqueue fails. Otherwice there is a resource leak and following warning is shown: WARNING: at fs/sysfs/dir.c:487 sysfs_add_one+0xc5/0x160() sysfs: cannot create duplicate filename '/devices/virtual/block/dm-0' Cc: stable@kernel.org Signed-off-by: Zdenek Kabelac Reviewed-by: Jonathan Brassow Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed