summaryrefslogtreecommitdiff
path: root/drivers/net/tun.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2009-10-17 02:18:15 +0400
committerAlasdair G Kergon <agk@redhat.com>2009-10-17 02:18:15 +0400
commit03022c54b9725026c0370a810168975c387ad04c (patch)
tree3d16ed7e303effca715f0ea78f022252f48e1257 /drivers/net/tun.c
parentbca915aae803cf01fde4461fc9c093cf5a86d7fc (diff)
downloadlinux-03022c54b9725026c0370a810168975c387ad04c.tar.xz
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/net/tun.c')
0 files changed, 0 insertions, 0 deletions