patch-2.4.0-test5 linux/drivers/sbus/char/vfc_dev.c

Next file: linux/drivers/scsi/3w-xxxx.c
Previous file: linux/drivers/sbus/char/rtc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/sbus/char/vfc_dev.c linux/drivers/sbus/char/vfc_dev.c
@@ -238,7 +238,7 @@
 
 		if(copy_from_user(buffer, inout.buffer, 
 				  inout.len*sizeof(char))) {
-			kfree_s(buffer, inout.len * sizeof(char));
+			kfree(buffer);
 			return -EFAULT;
 		}
 		
@@ -249,7 +249,7 @@
 					inout.buffer,inout.len);
 
 		if (copy_to_user((void *)arg,&inout,sizeof(inout))) {
-			kfree_s(buffer, inout.len);
+			kfree(buffer);
 			return -EFAULT;
 		}
 		vfc_unlock_device(dev);
@@ -271,14 +271,14 @@
 		vfc_unlock_device(dev);
 		
 		if (copy_to_user(inout.buffer, buffer, inout.len)) {
-			kfree_s(buffer,inout.len);
+			kfree(buffer);
 			return -EFAULT;
 		}
 		if (copy_to_user((void *)arg,&inout,sizeof(inout))) {
-			kfree_s(buffer,inout.len);
+			kfree(buffer);
 			return -EFAULT;
 		}
-		kfree_s(buffer,inout.len);
+		kfree(buffer);
 		break;
 	default:
 		return -EINVAL;

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