patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / fs / hfsplus / ioctl.c
index 440e0da..bd05477 100644 (file)
@@ -31,7 +31,7 @@ int hfsplus_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
                        flags |= EXT2_FLAG_APPEND; /* EXT2_APPEND_FL */
                if (HFSPLUS_I(inode).userflags & HFSPLUS_FLG_NODUMP)
                        flags |= EXT2_FLAG_NODUMP; /* EXT2_NODUMP_FL */
-               return put_user(flags, (int *)arg);
+               return put_user(flags, (int __user *)arg);
        case HFSPLUS_IOC_EXT2_SETFLAGS: {
                if (IS_RDONLY(inode))
                        return -EROFS;
@@ -39,7 +39,7 @@ int hfsplus_ioctl(struct inode *inode, struct file *filp, unsigned int cmd,
                if ((current->fsuid != inode->i_uid) && !capable(CAP_FOWNER))
                        return -EACCES;
 
-               if (get_user(flags, (int *)arg))
+               if (get_user(flags, (int __user *)arg))
                        return -EFAULT;
 
                if (flags & (EXT2_FLAG_IMMUTABLE|EXT2_FLAG_APPEND) ||