diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2009-10-16 23:18:15 +0100 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-10-16 23:18:15 +0100 |
commit | 03022c54b9725026c0370a810168975c387ad04c (patch) | |
tree | 3d16ed7e303effca715f0ea78f022252f48e1257 /drivers/md/dm-path-selector.h | |
parent | bca915aae803cf01fde4461fc9c093cf5a86d7fc (diff) |
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>
Diffstat (limited to 'drivers/md/dm-path-selector.h')
0 files changed, 0 insertions, 0 deletions