patch-2.1.4 linux/fs/ext2/ioctl.c

Next file: linux/fs/ext2/super.c
Previous file: linux/fs/ext2/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.3/linux/fs/ext2/ioctl.c linux/fs/ext2/ioctl.c
@@ -35,7 +35,7 @@
 		err = verify_area(VERIFY_READ, (int *) arg, sizeof(int));
 		if (err)
 			return err;
-		flags = get_user((int *) arg);
+		get_user(flags, (int *) arg);
 		/*
 		 * The IMMUTABLE and APPEND_ONLY flags can only be changed by
 		 * the super user when the security level is zero.
@@ -77,7 +77,7 @@
 		err = verify_area(VERIFY_READ, (int *) arg, sizeof(int));
 		if (err)
 			return err;
-		inode->u.ext2_i.i_version = get_user((int *) arg);
+		get_user(inode->u.ext2_i.i_version, (int *) arg);
 		inode->i_ctime = CURRENT_TIME;
 		inode->i_dirt = 1;
 		return 0;

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