patch-2.1.20 linux/fs/buffer.c

Next file: linux/fs/dquot.c
Previous file: linux/drivers/scsi/st.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.19/linux/fs/buffer.c linux/fs/buffer.c
@@ -1546,7 +1546,7 @@
 
 asmlinkage int sys_bdflush(int func, long data)
 {
-	int i, error;
+	int i;
 
 	if (!suser())
 		return -EPERM;
@@ -1560,11 +1560,7 @@
 		if (i < 0 || i >= N_PARAM)
 			return -EINVAL;
 		if((func & 1) == 0) {
-			error = verify_area(VERIFY_WRITE, (void *) data, sizeof(int));
-			if (error)
-				return error;
-			put_user(bdf_prm.data[i], (int*)data);
-			return 0;
+			return put_user(bdf_prm.data[i], (int*)data);
 		};
 		if (data < bdflush_min[i] || data > bdflush_max[i])
 			return -EINVAL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov