patch-2.4.21 linux-2.4.21/drivers/char/rio/rioboot.c

Next file: linux-2.4.21/drivers/char/rocket_int.h
Previous file: linux-2.4.21/drivers/char/raw.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/drivers/char/rio/rioboot.c linux-2.4.21/drivers/char/rio/rioboot.c
@@ -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;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)