-
William Stinson authored
This is version 2 of my proposed patch for fdc-io.c tape driver for Linux. It 1) removes three calls to check_region using request_region instead. 2) in case of fatal error calls release_region to liberate region resources already allocated (as pointed out by Matthew Wilcox my first patch wasn't doing that) Remark regarding allocation of regions in this driver: If BROKEN_FLOPPY_DRIVER is defined the driver keeps going even if it can't allocate one or more region resources. The driver does not store information concerning which allocations succeeded and which failed. When and if subroutine fdc_release_regions is called it will then try to release all regions it normally reserves. I don't know if this could cause any trouble in some (rare) situations? I don't have this hardware so only compilation is tested. This patch removes all references to check_region in this driver. This is patch number 13 in a series of check_region patches I am doing as part of the kernel janitors project.
7d857c13