From: Al Viro Date: Sat, 4 May 2013 20:00:50 +0000 (-0400) Subject: xtensa simdisk: fix braino in "xtensa simdisk: switch to proc_create_data()" X-Git-Tag: firefly_0821_release~3680^2~580^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4fe56e80825b47083100b2a98843df98fc7d4f07;p=firefly-linux-kernel-4.4.55.git xtensa simdisk: fix braino in "xtensa simdisk: switch to proc_create_data()" Signed-off-by: Al Viro --- diff --git a/arch/xtensa/platforms/iss/simdisk.c b/arch/xtensa/platforms/iss/simdisk.c index 4a06d70ddf5e..88608cc11b8c 100644 --- a/arch/xtensa/platforms/iss/simdisk.c +++ b/arch/xtensa/platforms/iss/simdisk.c @@ -231,7 +231,7 @@ static ssize_t proc_read_simdisk(struct file *file, char __user *buf, } static ssize_t proc_write_simdisk(struct file *file, const char __user *buf, - size_t size, loff_t *ppos) + size_t count, loff_t *ppos) { char *tmp = kmalloc(count + 1, GFP_KERNEL); struct simdisk *dev = PDE_DATA(file_inode(file));