Zdenek Kabelac 03022c54b9 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 <zkabelac@redhat.com>
Reviewed-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2009-10-16 23:18:15 +01:00
..
2006-01-01 22:21:50 +01:00
2009-06-22 10:12:26 +01:00
2009-04-09 00:27:17 +01:00
2009-09-14 08:24:52 +02:00
2009-06-22 10:12:29 +01:00
2009-09-04 20:40:25 +01:00
2007-10-20 02:01:26 +01:00
2009-06-22 10:12:35 +01:00
2009-03-31 14:57:37 +11:00
2005-04-16 15:20:36 -07:00