linux/drivers/parport
Jiri Kosina 9fdbdd062b parport_pc: release IO region properly if unsupported ITE887x card is found
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 <jkosina@suse.cz>
Acked-by: Niels de Vos <ndevos@redhat.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Joe Krahn <krahn@niehs.nih.gov>
Signed-off-by: Andrew Morton <akpm@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-10-18 14:17:40 -07:00
..
BUGS-parport
daisy.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ieee1284.c Fix common misspellings 2011-03-31 11:26:23 -03:00
ieee1284_ops.c
Kconfig Fix common misspellings 2011-03-31 11:26:23 -03:00
Makefile
multiface.h
parport_amiga.c m68k: amiga - Parallel port platform device conversion 2010-05-26 19:51:09 +02:00
parport_atari.c
parport_ax88796.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00
parport_cs.c pcmcia: Convert pcmcia_device_id declarations to const 2011-05-06 07:46:22 +02:00
parport_gsc.c
parport_gsc.h
parport_ip32.c parport: Drop __TIME__ usage 2011-05-25 22:42:56 +02:00
parport_mfc3.c
parport_pc.c parport_pc: release IO region properly if unsupported ITE887x card is found 2011-10-18 14:17:40 -07:00
parport_serial.c parport/serial: add support for Timedia/SUNIX cards to parport_serial 2011-06-07 09:35:57 -07:00
parport_sunbpp.c dt/sparc: Eliminate users of of_platform_{,un}register_driver 2011-02-28 01:36:39 -07:00
probe.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
procfs.c
share.c parport: make lockdep happy with waitlist_lock 2011-01-26 10:49:59 +10:00
TODO-parport