From 7215eeeb3d594fbc7ec185c08d60ac397b40575b Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Wed, 26 Nov 2008 02:23:19 -0500 Subject: [PATCH] --- yaml --- r: 127930 b: refs/heads/master c: 23475e264c4f5c8b635a31924851287ead1ebe32 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ext4/super.c | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index 9899a3b4841d..090426fc1d8c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 171bbfbeab7730031eec8025341401fabe540bd5 +refs/heads/master: 23475e264c4f5c8b635a31924851287ead1ebe32 diff --git a/trunk/fs/ext4/super.c b/trunk/fs/ext4/super.c index 81aed8b825a0..8a0ae883f567 100644 --- a/trunk/fs/ext4/super.c +++ b/trunk/fs/ext4/super.c @@ -3521,18 +3521,15 @@ static int ext4_ui_proc_open(struct inode *inode, struct file *file) static ssize_t ext4_ui_proc_write(struct file *file, const char __user *buf, size_t cnt, loff_t *ppos) { - unsigned int *p = PDE(file->f_path.dentry->d_inode)->data; + unsigned long *p = PDE(file->f_path.dentry->d_inode)->data; char str[32]; - unsigned long value; if (cnt >= sizeof(str)) return -EINVAL; if (copy_from_user(str, buf, cnt)) return -EFAULT; - value = simple_strtol(str, NULL, 0); - if (value < 0) - return -ERANGE; - *p = value; + + *p = simple_strtoul(str, NULL, 0); return cnt; }