From: Greg Meiste Date: Fri, 14 Jan 2011 15:24:31 +0000 (-0600) Subject: [ARM] tegra: fuse: Fix copy_to_user typo X-Git-Tag: firefly_0821_release~9834^2~170 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=4a8f9e71f2d629ad3fa9633d70b243e9ee311b7e;p=firefly-linux-kernel-4.4.55.git [ARM] tegra: fuse: Fix copy_to_user typo Correct order of parameters to copy_to_user. Submitted on behalf of Eyob Tesfu Change-Id: Ic7b3862e663672179584fc80c1994a6a0918904a Signed-off-by: Greg Meiste --- diff --git a/arch/arm/mach-tegra/tegra2_fuse.c b/arch/arm/mach-tegra/tegra2_fuse.c index 037ac2bfd0ad..47342911b63e 100644 --- a/arch/arm/mach-tegra/tegra2_fuse.c +++ b/arch/arm/mach-tegra/tegra2_fuse.c @@ -656,8 +656,8 @@ long tegra_fuse_ioctl(struct file *file, unsigned int ioctl_num, case TEGRA_FUSE_IOCTL_GET_UID: tegra_fuse_get_uid(uid_buff); - if (copy_to_user((void *)uid_buff, - (void __user *)ioctl_param, SIZE_OF_UID)) { + if (copy_to_user((void __user *)ioctl_param, + (void *)uid_buff, SIZE_OF_UID)) { ret_val = -EFAULT; } break;