aboutsummaryrefslogtreecommitdiff
path: root/arch/um/os-Linux/drivers/ethertap_user.c
diff options
context:
space:
mode:
authorJeff Dike <[email protected]>2007-05-06 14:51:01 -0700
committerLinus Torvalds <[email protected]>2007-05-07 12:13:00 -0700
commitb47d2debf229469c78af4145ee7ad35a0f21b67f (patch)
tree6bca064260d56701b799282b40586277278996b4 /arch/um/os-Linux/drivers/ethertap_user.c
parent1d94cda04eb82feb87c932ac3d4aef1e9dc78a43 (diff)
uml: handle block device hotplug errors
If a disk fails to open, i.e. its host file doesn't exist, it won't be removable because the hot-unplug code checks the existence of its gendisk. This won't exist because it is only allocated for successfully opened disks. Thus, a typo on the command line can result in a unusable and unfixable disk. This is fixed by freeing the gendisk if it's there, but not letting that affect the removal. Signed-off-by: Jeff Dike <[email protected]> Cc: Paolo 'Blaisorblade' Giarrusso <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'arch/um/os-Linux/drivers/ethertap_user.c')
0 files changed, 0 insertions, 0 deletions