mirror of
https://github.com/torvalds/linux.git
synced 2026-12-06 21:34:39 +00:00
sio_ite_8872_probe() bails out if it detects no-parallel (1S, 2S) or
unknown card.
It doesn't call release_region() on the previously allocated resource
though. This causes
(a) leak of the resource
(b) kernel oops when parport module is removed and /proc/ioports is read. This
is because the string that has been associated to the IO port region
is a static char array inside the already removed module.
Let's call release_region() properly before baling out.
Signed-off-by: Jiri Kosina <[email protected]>
Acked-by: Niels de Vos <[email protected]>
Cc: Bjorn Helgaas <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: Joe Krahn <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>