[PATCH] serport oops fix
authorDmitry Torokhov <dtor_core@ameritech.net>
Tue, 17 May 2005 04:53:07 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:10 +0000 (07:59 -0700)
commit1ff2c873ca11f9e6abffb004b908756b27597672
tree0c231057e7d947882fcb33b5fa277ba08423a70b
parentf3a5c73d5ecb40909db662c4d2ace497b25c5940
[PATCH] serport oops fix

serport - avoid calling serio_interrupt or serio_write_wakeup on unregistered
port.  Also fix memory leak which could happen if serport was left unused by
moving serio allocation down to serport_ldisc_read.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Cc: Vojtech Pavlik <vojtech@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/input/serio/serport.c