Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parport_pc: make sure to release IO ports after probing for IT87XX
Commit f63fd7e ("parport_pc: detection for SuperIO IT87XX POST") only released the IO port region on success, not when the probe for the IT87XX chip failed. That caused not only a reserved region to leak, but also caused an oops when the driver module was unloaded and somebody tried to cat /proc/ioports - because the string that was assigned to the IO port region was a static string in the module virtual address area. Reported-by: Lubos Lunak <[email protected]> Cc: Jan Kara <[email protected]> Cc: Petr Cvek <[email protected]> Acked-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information