* Fix for memleak in Perle Specialix driver
@ 2003-04-22 20:08 Oleg Drokin
0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2003-04-22 20:08 UTC (permalink / raw)
To: alan, torvalds, linux-kernel, marcelo; +Cc: r.e.wolff
Hello!
There is a memleak on error exit path in Perle Specialix driver.
The problem is present in both 2.4 and 2.5, the patch is trivial and
applies to both trees.
Please consider applying.
Bye,
Oleg
===== drivers/char/rio/rioboot.c 1.3 vs edited =====
--- 1.3/drivers/char/rio/rioboot.c Tue Feb 5 10:42:04 2002
+++ edited/drivers/char/rio/rioboot.c Tue Apr 22 23:50:56 2003
@@ -328,6 +328,7 @@
if ( copyin((int)rbp->DataP,DownCode,rbp->Count)==COPYFAIL ) {
rio_dprintk (RIO_DEBUG_BOOT, "Bad copyin of host data\n");
+ sysfree( DownCode, rbp->Count );
p->RIOError.Error = COPYIN_FAILED;
func_exit ();
return EFAULT;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-22 19:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-22 20:08 Fix for memleak in Perle Specialix driver Oleg Drokin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.