patch-2.4.22 linux-2.4.22/drivers/scsi/megaraid.c

Next file: linux-2.4.22/drivers/scsi/nsp32.h
Previous file: linux-2.4.22/drivers/scsi/ide-scsi.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/scsi/megaraid.c linux-2.4.22/drivers/scsi/megaraid.c
@@ -4924,8 +4924,10 @@
 
 		if( !scsicmd->result && outlen ) {
 			if (copy_to_user(uaddr, kvaddr, length))
+			{
 				ret = -EFAULT;
 				goto out;
+			}
 		}
 
 		/*

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