]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix memory leak in rocketport rp_do_receive
authorPaul Fulghum <paulkf@microgate.com>
Sun, 25 Jun 2006 12:49:12 +0000 (05:49 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:01:22 +0000 (10:01 -0700)
commit03ee27629db3500bc29f9f17dba9cdd1107cc5c1
tree818ea9a738b72cfd11f97637312e743aa344e195
parentb52fbdc76f5c9c8f6b2d3a4cfa6821ab3d393712
[PATCH] fix memory leak in rocketport rp_do_receive

Fix memory leak caused by incorrect use of tty buffer facility.  tty
buffers are allocated but never processed by call to tty_flip_buffer_push
so they accumulate on the full buffer list.  Current code uses the buffers
as a temporary storage for data before passing it directly to the line
discipline.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/rocket.c