Commit e9529a6c authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] rio memleak fix

From: Dipankar Sarma <dipankar@in.ibm.com>

Fix memory leak - free on copyin failure.
parent 57e92500
......@@ -326,6 +326,7 @@ register struct DownLoad *rbp;
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment