kernel-fxtec-pro1x/drivers/parport
Michael Buesch f59abb161c parport: ieee1284: use del_timer_sync() in parport_wait_event()
Use del_timer_sync() instead of del_timer() to make sure the timer won't
be running when we return from parport_wait_event(), because this would
crash due to destruction of timer_list.

This is untested and just based on a code review.  Just think about the
following sequence of events:

- add_timer()

- down_interruptible() is interrupted by a signal.

- we enter the timer callback handler on another CPU.

- del_timer(), but the timer callback is still running.

- eturn from parport_wait_even, which destroys the automatic variable
  "timer" while the callback is running on another CPU.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:31 -08:00
..
BUGS-parport
ChangeLog Remove Andrew Morton's old email accounts 2008-10-16 11:21:32 -07:00
daisy.c [PARPORT] Remove unused 'irq' argument from parport irq functions 2007-10-23 19:53:16 -04:00
ieee1284.c parport: ieee1284: use del_timer_sync() in parport_wait_event() 2009-01-06 15:59:31 -08:00
ieee1284_ops.c parport: fix ieee1284_epp_read_addr 2008-02-08 09:22:36 -08:00
Kconfig Parport driver: disable pc-style parport on Blackfin systems 2008-11-18 08:10:08 -08:00
Makefile
multiface.h
parport_amiga.c
parport_atari.c
parport_ax88796.c parport: fix platform driver hotplug/coldplug 2008-07-25 10:53:28 -07:00
parport_cs.c pcmcia: IRQ_TYPE_EXCLUSIVE is long obsoleted 2008-10-17 23:07:10 +02:00
parport_gsc.c drivers: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:53 -07:00
parport_gsc.h
parport_ip32.c
parport_mfc3.c [PARPORT] Kill useful 'irq' arg from parport_{generic_irq,ieee1284_interrupt} 2007-10-23 19:53:15 -04:00
parport_pc.c 8250: Oxford Semiconductor Devices 2008-10-23 09:31:09 -07:00
parport_serial.c parport_serial: fix array overflow 2008-12-01 19:55:24 -08:00
parport_sunbpp.c sparc: Annotate of_device_id arrays with const or __initdata. 2008-08-31 01:23:17 -07:00
probe.c parport: remove CVS keywords 2008-10-16 11:21:49 -07:00
procfs.c parport/share.c: proper externs 2008-07-26 12:00:03 -07:00
share.c parport: remove CVS keywords 2008-10-16 11:21:49 -07:00
TODO-parport