]> git.hungrycats.org Git - linux/commit
[PATCH] Fix potential leaks in pc300_tty driver
authorDave Jones <davej@redhat.com>
Thu, 2 Sep 2004 07:38:17 +0000 (00:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 2 Sep 2004 07:38:17 +0000 (00:38 -0700)
commit6468c98fea33b58b040c3ca0413b3f62598fb1f1
treeacbc234ab734a621b96a026ada8ad9096aff61eb
parente930d4207840884f8fde85d7f94fa9a1689a4e05
[PATCH] Fix potential leaks in pc300_tty driver

It appears that 'new' can be allocated, and next time around
the loop, if something goes wrong, we lose the reference..

Spotted with the source checker from Coverity.com.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/net/wan/pc300_tty.c