diff options
author | Julia Lawall <julia@diku.dk> | 2010-04-06 14:34:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-04-07 08:38:02 -0700 |
commit | c70c036f04b7b74282477d6a51bbcc8bb8897e03 (patch) | |
tree | 9a5a42056298ef700f06c1608c7670982bb0aa87 /drivers/gpio | |
parent | a8557dc71949e80c298ec298b902ac6ebbc5d9dd (diff) | |
download | talos-obmc-linux-c70c036f04b7b74282477d6a51bbcc8bb8897e03.tar.gz talos-obmc-linux-c70c036f04b7b74282477d6a51bbcc8bb8897e03.zip |
drivers/char/amiserial.c: add missing local_irq_restore
rs_init() is failing to restore interrupts on two error paths, and is
incorrectly calling tty_unregister_driver() with local interrupts
disabled.
Fix these things by disabling interrupts later, after the reauest_irq()
calls.
A simplified version of the semantic patch that finds this problem is as
follows: (http://coccinelle.lip6.fr/)
// <smpl>
@r exists@
expression E1;
identifier f;
@@
f (...) { <+...
* local_irq_save (E1,...);
... when != E1
* return ...;
...+> }
// </smpl>
[akpm@linux-foundation.org: reimplement the fix]
Signed-off-by: Julia Lawall <julia@diku.dk>
Cc: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/gpio')
0 files changed, 0 insertions, 0 deletions